fix last commit

This commit is contained in:
Potuz 2022-11-08 21:51:54 -03:00
parent 8f42e485c7
commit 710b124cdc

View File

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