From 5c0a8d3b71a7e1eaffbe440f1bc8abb0c3bc9cc0 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Tue, 2 Jul 2024 15:30:42 +0600 Subject: [PATCH] Fix off-by-one found by @james-prysm --- specs/electra/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index 83dd728a7..d998a9254 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -954,7 +954,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: + 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.