From 710b124cdc3c52681c7f93027f44573e08aea539 Mon Sep 17 00:00:00 2001 From: Potuz Date: Tue, 8 Nov 2022 21:51:54 -0300 Subject: [PATCH] fix last commit --- specs/capella/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/capella/beacon-chain.md b/specs/capella/beacon-chain.md index a820d213d..e72a0dc1a 100644 --- a/specs/capella/beacon-chain.md +++ b/specs/capella/beacon-chain.md @@ -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]