Skip to content

Commit aa65fd7

Browse files
mkalininhwwhww
andauthored
Apply suggestion from @hwwhww
Co-authored-by: Hsiao-Wei Wang <[email protected]>
1 parent 3fd125f commit aa65fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/electra/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def initialize_beacon_state_from_eth1(eth1_block_hash: Hash32,
14441444
balance = state.balances[index]
14451445
# [Modified in Electra:EIP7251]
14461446
validator.effective_balance = min(
1447-
balance - balance % EFFECTIVE_BALANCE_INCREMENT, MAX_EFFECTIVE_BALANCE_ELECTRA)
1447+
balance - balance % EFFECTIVE_BALANCE_INCREMENT, get_validator_max_effective_balance(validator))
14481448
if validator.effective_balance >= MIN_ACTIVATION_BALANCE:
14491449
validator.activation_eligibility_epoch = GENESIS_EPOCH
14501450
validator.activation_epoch = GENESIS_EPOCH

0 commit comments

Comments
 (0)