mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-01 18:50:35 +00:00
fix last commit
This commit is contained in:
parent
8f42e485c7
commit
710b124cdc
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user