mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 22:45:09 -05:00
fix last commit
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user