mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
feat: add StaticFileSegment::AccountChangeSets (#18882)
Co-authored-by: Alexey Shekhirin <github@shekhirin.com>
This commit is contained in:
@@ -15,13 +15,19 @@ pub enum StateRootError {
|
||||
/// Storage root error.
|
||||
#[error(transparent)]
|
||||
StorageRootError(#[from] StorageRootError),
|
||||
/// Provider error when loading prefix sets
|
||||
#[error(transparent)]
|
||||
PrefixSetLoadError(#[from] ProviderError),
|
||||
}
|
||||
|
||||
impl From<StateRootError> for DatabaseError {
|
||||
fn from(err: StateRootError) -> Self {
|
||||
match err {
|
||||
impl From<StateRootError> for ProviderError {
|
||||
fn from(value: StateRootError) -> Self {
|
||||
match value {
|
||||
StateRootError::Database(err) |
|
||||
StateRootError::StorageRootError(StorageRootError::Database(err)) => err,
|
||||
StateRootError::StorageRootError(StorageRootError::Database(err)) => {
|
||||
Self::Database(err)
|
||||
}
|
||||
StateRootError::PrefixSetLoadError(err) => err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user