merging upstream

This commit is contained in:
james-prysm 2024-07-02 11:21:58 -05:00
commit 8099f39008

View File

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