Undo MAX_EB to MIN_AB switch in withdrawal helper

This commit is contained in:
Mikhail Kalinin 2024-09-19 10:44:38 +04:00
parent d71d9dda9e
commit 23699f596d
1 changed files with 1 additions and 4 deletions

View File

@ -30,10 +30,7 @@ def set_validator_fully_withdrawable(spec, state, index, withdrawable_epoch=None
def set_eth1_withdrawal_credential_with_balance(spec, state, index, balance=None, address=None):
if balance is None:
if is_post_electra(spec):
balance = spec.MIN_ACTIVATION_BALANCE
else:
balance = spec.MAX_EFFECTIVE_BALANCE
balance = spec.MAX_EFFECTIVE_BALANCE
if address is None:
address = b'\x11' * 20