Update 0_beacon-chain.md (#921)

Fix typo to set the right property on the correct object
This commit is contained in:
Alex Stokes 2019-04-14 22:55:38 +10:00 committed by Justin
parent 7840d29f2d
commit bcf10ecf11
1 changed files with 1 additions and 1 deletions

View File

@ -1937,7 +1937,7 @@ def process_balance_driven_status_transitions(state: BeaconState) -> None:
for index, validator in enumerate(state.validator_registry):
balance = get_balance(state, index)
if validator.activation_eligibility_epoch == FAR_FUTURE_EPOCH and balance >= MAX_DEPOSIT_AMOUNT:
state.activation_eligibility_epoch = get_current_epoch(state)
validator.activation_eligibility_epoch = get_current_epoch(state)
if is_active_validator(validator, get_current_epoch(state)) and balance < EJECTION_BALANCE:
initiate_validator_exit(state, index)