Fix the sweep by enabling 0x02 creds

This commit is contained in:
Mikhail Kalinin 2024-03-27 12:42:37 +06:00
parent 06104f24e3
commit 5e32d442a2
1 changed files with 5 additions and 1 deletions

View File

@ -347,7 +347,11 @@ def is_partially_withdrawable_validator(validator: Validator, balance: Gwei) ->
max_effective_balance = get_validator_max_effective_balance(validator)
has_max_effective_balance = validator.effective_balance == max_effective_balance # [Modified in EIP7251]
has_excess_balance = balance > max_effective_balance # [Modified in EIP7251]
return has_eth1_withdrawal_credential(validator) and has_max_effective_balance and has_excess_balance
return (
has_execution_withdrawal_credential(validator) # [Modified in EIP7251]
and has_max_effective_balance
and has_excess_balance
)
```
### Beacon state accessors