diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index c90345215..a7023ac4d 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -956,7 +956,7 @@ def process_pending_deposits(state: BeaconState) -> None: break # Check if number of processed deposits has not reached the limit, otherwise, stop processing. - if next_deposit_index > MAX_PENDING_DEPOSITS_PER_EPOCH_PROCESSING-1: + if next_deposit_index >= MAX_PENDING_DEPOSITS_PER_EPOCH_PROCESSING: break # Check if deposit fits in the churn, otherwise, do no more deposit processing in this epoch.