Fix off-by-one found by @james-prysm

This commit is contained in:
Mikhail Kalinin 2024-07-02 15:30:42 +06:00 committed by GitHub
parent 8f6b1e0ba9
commit 5c0a8d3b71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.