mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 23:15:21 -05:00
Update 0_beacon-chain.md
This commit is contained in:
@@ -1713,7 +1713,7 @@ def process_ejections(state: BeaconState) -> None:
|
||||
Iterate through the validator registry
|
||||
and eject active validators with balance below ``EJECTION_BALANCE``.
|
||||
"""
|
||||
for index in get_active_validator_indices(state.validator_registry):
|
||||
for index in get_active_validator_indices(state.validator_registry, state.slot):
|
||||
if state.validator_balances[index] < EJECTION_BALANCE * GWEI_PER_ETH:
|
||||
exit_validator(state, index)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user