mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-28 19:35:18 +00:00
Fixed activation slot conditional.
This commit is contained in:
parent
b614595fbe
commit
3f4be7abb7
@ -1676,7 +1676,7 @@ def update_validator_registry(state: BeaconState) -> None:
|
||||
# Activate validators within the allowable balance churn
|
||||
balance_churn = 0
|
||||
for index, validator in enumerate(state.validator_registry):
|
||||
if validator.activation_slot > state.slot and state.validator_balances[index] >= MAX_DEPOSIT * GWEI_PER_ETH:
|
||||
if validator.activation_slot > state.slot + ENTRY_EXIT_DELAY and state.validator_balances[index] >= MAX_DEPOSIT * GWEI_PER_ETH:
|
||||
# Check the balance churn would be within the allowance
|
||||
balance_churn += get_effective_balance(state, index)
|
||||
if balance_churn > max_balance_churn:
|
||||
|
Loading…
x
Reference in New Issue
Block a user