fix: do not validate increasing withdrawal indexes (#4844)

This commit is contained in:
Dan Cline
2023-09-28 14:12:21 -04:00
committed by GitHub
parent 486b289caa
commit f534b405cd
2 changed files with 1 additions and 84 deletions

View File

@@ -246,15 +246,6 @@ pub enum ConsensusError {
#[error("Unexpected withdrawals root")]
WithdrawalsRootUnexpected,
/// Error when the withdrawal index is invalid.
#[error("Withdrawal index #{got} is invalid. Expected: #{expected}.")]
WithdrawalIndexInvalid {
/// The actual withdrawal index.
got: u64,
/// The expected withdrawal index.
expected: u64,
},
/// Error when withdrawals are missing.
#[error("Missing withdrawals")]
BodyWithdrawalsMissing,