Skip to content

Commit f5207db

Browse files
authored
Merge pull request #3647 from ethereum/mkalinin-patch-6
EIP-7251: Use MIN_ACTIVATION_BALANCE instead of MAX_EFFECTIVE_BALANCE
2 parents 9a6c8b6 + 881768c commit f5207db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/_features/eip7251/beacon-chain.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,9 @@ def switch_to_compounding_validator(state: BeaconState, index: ValidatorIndex) -
454454
```python
455455
def queue_excess_active_balance(state: BeaconState, index: ValidatorIndex) -> None:
456456
balance = state.balances[index]
457-
if balance > MAX_EFFECTIVE_BALANCE:
458-
excess_balance = balance - MAX_EFFECTIVE_BALANCE
459-
state.balances[index] = balance - excess_balance
457+
if balance > MIN_ACTIVATION_BALANCE:
458+
excess_balance = balance - MIN_ACTIVATION_BALANCE
459+
state.balances[index] = MIN_ACTIVATION_BALANCE
460460
state.pending_balance_deposits.append(
461461
PendingBalanceDeposit(index=index, amount=excess_balance)
462462
)

0 commit comments

Comments
 (0)