fix call to get_current_epoch

This commit is contained in:
Danny Ryan
2019-03-04 19:09:31 -07:00
parent bd936fa6ab
commit d2f7fa9a7e

View File

@@ -2330,7 +2330,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, current_epoch(state)):
for index in get_active_validator_indices(state.validator_registry, get_current_epoch(state)):
if state.validator_balances[index] < EJECTION_BALANCE:
exit_validator(state, index)
```