chore: rm unused error variants (#14183)

This commit is contained in:
Matthias Seitz
2025-02-04 00:29:29 +01:00
committed by GitHub
parent 556c79f787
commit af3eb83c90
6 changed files with 5 additions and 44 deletions

View File

@ -36,9 +36,6 @@ pub enum BlockValidationError {
/// The EVM error.
error: Box<dyn core::error::Error + Send + Sync>,
},
/// Error when recovering the sender for a transaction
#[error("failed to recover sender for transaction")]
SenderRecoveryError,
/// Error when incrementing balance in post execution
#[error("incrementing balance in post execution failed")]
IncrementBalanceFailed,
@ -55,18 +52,6 @@ pub enum BlockValidationError {
/// The available block gas
block_available_gas: u64,
},
/// Error for pre-merge block
#[error("block {hash} is pre merge")]
BlockPreMerge {
/// The hash of the block
hash: B256,
},
/// Error for missing total difficulty
#[error("missing total difficulty for block {hash}")]
MissingTotalDifficulty {
/// The hash of the block
hash: B256,
},
/// Error for EIP-4788 when parent beacon block root is missing
#[error("EIP-4788 parent beacon block root missing for active Cancun block")]
MissingParentBeaconBlockRoot,