mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-14 04:34:43 +00:00
Fix "is_ready_to_exit" condition
This commit is contained in:
parent
bb44d25665
commit
b836b30bff
@ -1964,7 +1964,7 @@ def update_validator_registry(state: BeaconState) -> None:
|
|||||||
# Exit validators within the allowable balance churn
|
# Exit validators within the allowable balance churn
|
||||||
balance_churn = 0
|
balance_churn = 0
|
||||||
for index, validator in enumerate(state.validator_registry):
|
for index, validator in enumerate(state.validator_registry):
|
||||||
if validator.activation_epoch == FAR_FUTURE_EPOCH and validator.initiated_exit:
|
if validator.exit_epoch == FAR_FUTURE_EPOCH and validator.initiated_exit:
|
||||||
# Check the balance churn would be within the allowance
|
# Check the balance churn would be within the allowance
|
||||||
balance_churn += get_effective_balance(state, index)
|
balance_churn += get_effective_balance(state, index)
|
||||||
if balance_churn > max_balance_churn:
|
if balance_churn > max_balance_churn:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user