diff --git a/consensus/state_processing/src/per_block_processing/process_operations.rs b/consensus/state_processing/src/per_block_processing/process_operations.rs index aba184b8043..0fbb82ed1d9 100644 --- a/consensus/state_processing/src/per_block_processing/process_operations.rs +++ b/consensus/state_processing/src/per_block_processing/process_operations.rs @@ -653,6 +653,10 @@ pub fn process_consolidations( 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();