Skip to content

Commit

Permalink
chore: rm unused prune error variant (paradigmxyz#14185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Feb 4, 2025
1 parent e80d6f2 commit 42dfc1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/evm/execution-errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ workspace = true
# reth
reth-consensus.workspace = true
reth-storage-errors.workspace = true
reth-prune-types.workspace = true

alloy-primitives.workspace = true
alloy-rlp.workspace = true
Expand Down
8 changes: 2 additions & 6 deletions crates/evm/execution-errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use alloc::{
use alloy_eips::BlockNumHash;
use alloy_primitives::B256;
use reth_consensus::ConsensusError;
use reth_prune_types::PruneSegmentError;
use reth_storage_errors::provider::ProviderError;
use thiserror::Error;

Expand Down Expand Up @@ -157,9 +156,6 @@ impl From<ProviderError> for BlockExecutionError {
/// Internal (i.e., not validation or consensus related) `BlockExecutor` Errors
#[derive(Error, Debug)]
pub enum InternalBlockExecutionError {
/// Pruning error, transparently wrapping [`PruneSegmentError`]
#[error(transparent)]
Pruning(#[from] PruneSegmentError),
/// Error when appending chain on fork is not possible
#[error(
"appending chain on fork (other_chain_fork:?) is not possible as the tip is {chain_tip:?}"
Expand All @@ -170,9 +166,9 @@ pub enum InternalBlockExecutionError {
/// The fork on the other chain
other_chain_fork: Box<BlockNumHash>,
},
/// Error when fetching latest block state.
/// Error when fetching data from the db.
#[error(transparent)]
LatestBlock(#[from] ProviderError),
Provider(#[from] ProviderError),
/// Arbitrary Block Executor Errors
#[error(transparent)]
Other(Box<dyn core::error::Error + Send + Sync + 'static>),
Expand Down

0 comments on commit 42dfc1c

Please sign in to comment.