fix call to get_current_epoch
This commit is contained in:
parent
bd936fa6ab
commit
d2f7fa9a7e
|
@ -2330,7 +2330,7 @@ def process_ejections(state: BeaconState) -> None:
|
||||||
Iterate through the validator registry
|
Iterate through the validator registry
|
||||||
and eject active validators with balance below ``EJECTION_BALANCE``.
|
and eject active validators with balance below ``EJECTION_BALANCE``.
|
||||||
"""
|
"""
|
||||||
for index in get_active_validator_indices(state.validator_registry, current_epoch(state)):
|
for index in get_active_validator_indices(state.validator_registry, get_current_epoch(state)):
|
||||||
if state.validator_balances[index] < EJECTION_BALANCE:
|
if state.validator_balances[index] < EJECTION_BALANCE:
|
||||||
exit_validator(state, index)
|
exit_validator(state, index)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue