Skip to content

Commit

Permalink
Apply suggestion from @hwwhww
Browse files Browse the repository at this point in the history
Co-authored-by: Hsiao-Wei Wang <[email protected]>
  • Loading branch information
mkalinin and hwwhww authored Jun 14, 2024
1 parent 3fd125f commit aa65fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/electra/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ def initialize_beacon_state_from_eth1(eth1_block_hash: Hash32,
balance = state.balances[index]
# [Modified in Electra:EIP7251]
validator.effective_balance = min(
balance - balance % EFFECTIVE_BALANCE_INCREMENT, MAX_EFFECTIVE_BALANCE_ELECTRA)
balance - balance % EFFECTIVE_BALANCE_INCREMENT, get_validator_max_effective_balance(validator))
if validator.effective_balance >= MIN_ACTIVATION_BALANCE:
validator.activation_eligibility_epoch = GENESIS_EPOCH
validator.activation_epoch = GENESIS_EPOCH
Expand Down

0 comments on commit aa65fd7

Please sign in to comment.