Skip to content

Commit

Permalink
don't fail on empty consolidations
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Jun 25, 2024
1 parent 921f450 commit 33aedf5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,10 @@ pub fn process_consolidations<E: EthSpec>(
verify_signatures: VerifySignatures,
spec: &ChainSpec,
) -> Result<(), BlockProcessingError> {
if consolidations.is_empty() {
return Ok(());
}

// If the pending consolidations queue is full, no consolidations are allowed in the block
let pending_consolidations = state.pending_consolidations()?.len();
let pending_consolidations_limit = E::pending_consolidations_limit();
Expand Down

0 comments on commit 33aedf5

Please sign in to comment.