Skip to content

Commit

Permalink
In process_registry_updates, change two ifs to elifs (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Feb 6, 2025
1 parent 007e2c9 commit 834e406
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions specs/electra/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -830,11 +830,9 @@ def process_registry_updates(state: BeaconState) -> None:
for index, validator in enumerate(state.validators):
if is_eligible_for_activation_queue(validator): # [Modified in Electra:EIP7251]
validator.activation_eligibility_epoch = current_epoch + 1

if is_active_validator(validator, current_epoch) and validator.effective_balance <= EJECTION_BALANCE:
elif is_active_validator(validator, current_epoch) and validator.effective_balance <= EJECTION_BALANCE:
initiate_validator_exit(state, ValidatorIndex(index)) # [Modified in Electra:EIP7251]

if is_eligible_for_activation(state, validator):
elif is_eligible_for_activation(state, validator):
validator.activation_epoch = activation_epoch
```

Expand Down

0 comments on commit 834e406

Please sign in to comment.