chore: rm unused error variants (#2711)

This commit is contained in:
Matthias Seitz
2023-05-17 13:41:52 +02:00
committed by GitHub
parent 755438d61c
commit fd5a1ef4a8

View File

@ -67,8 +67,6 @@ pub enum ConsensusError {
BodyStateRootDiff { got: H256, expected: H256 }, BodyStateRootDiff { got: H256, expected: H256 },
#[error("Block transaction root ({got:?}) is different from expected ({expected:?})")] #[error("Block transaction root ({got:?}) is different from expected ({expected:?})")]
BodyTransactionRootDiff { got: H256, expected: H256 }, BodyTransactionRootDiff { got: H256, expected: H256 },
#[error("Block receipts root ({got:?}) is different from expected ({expected:?})")]
BodyReceiptsRootDiff { got: H256, expected: H256 },
#[error("Block withdrawals root ({got:?}) is different from expected ({expected:?})")] #[error("Block withdrawals root ({got:?}) is different from expected ({expected:?})")]
BodyWithdrawalsRootDiff { got: H256, expected: H256 }, BodyWithdrawalsRootDiff { got: H256, expected: H256 },
#[error("Block with [hash:{hash:?},number: {number}] is already known.")] #[error("Block with [hash:{hash:?},number: {number}] is already known.")]
@ -95,12 +93,6 @@ pub enum ConsensusError {
BaseFeeDiff { expected: u64, got: u64 }, BaseFeeDiff { expected: u64, got: u64 },
#[error("Transaction signer recovery error.")] #[error("Transaction signer recovery error.")]
TransactionSignerRecoveryError, TransactionSignerRecoveryError,
#[error(
"Transaction count {transaction_count} is different from receipt count {receipt_count}"
)]
TransactionReceiptCountDiff { transaction_count: usize, receipt_count: usize },
#[error("Transaction had receipt of different type")]
TransactionTypeReceiptTypeDiff,
#[error("Extra data {len} exceeds max length: ")] #[error("Extra data {len} exceeds max length: ")]
ExtraDataExceedsMax { len: usize }, ExtraDataExceedsMax { len: usize },
#[error("Difficulty after merge is not zero")] #[error("Difficulty after merge is not zero")]
@ -109,8 +101,6 @@ pub enum ConsensusError {
TheMergeNonceIsNotZero, TheMergeNonceIsNotZero,
#[error("Ommer root after merge is not empty")] #[error("Ommer root after merge is not empty")]
TheMergeOmmerRootIsNotEmpty, TheMergeOmmerRootIsNotEmpty,
#[error("Mix hash after merge is not zero")]
TheMergeMixHashIsNotZero,
#[error("Missing withdrawals root")] #[error("Missing withdrawals root")]
WithdrawalsRootMissing, WithdrawalsRootMissing,
#[error("Unexpected withdrawals root")] #[error("Unexpected withdrawals root")]