Skip to content

Commit

Permalink
fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Nov 9, 2022
1 parent 8f42e48 commit 710b124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/capella/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def process_block(state: BeaconState, block: BeaconBlock) -> None:
def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]:
epoch = get_current_epoch(state)
withdrawal_index = state.next_withdrawal_index
validator_index = ValidatorIndex((state.latest_validator_index + 1) % len(state.validators))
validator_index = ValidatorIndex((state.latest_withdrawal_validator_index + 1) % len(state.validators))
withdrawals: List[Withdrawal] = []
for _ in range(len(state.validators)):
validator = state.validators[validator_index]
Expand Down

0 comments on commit 710b124

Please sign in to comment.