Fix off-by-one found by @james-prysm
This commit is contained in:
parent
8f6b1e0ba9
commit
5c0a8d3b71
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue