Skip to content

Commit 9bcafc8

Browse files
committed
fix lint
1 parent 4d212b4 commit 9bcafc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

specs/electra/beacon-chain.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def get_expected_withdrawals(state: BeaconState) -> Tuple[Sequence[Withdrawal],
830830

831831
# [New in Electra:EIP7251] Consume pending partial withdrawals
832832
for withdrawal in state.pending_partial_withdrawals:
833-
if withdrawal.withdrawable_epoch > epoch or len(withdrawals) == MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD:
833+
if withdrawal.withdrawable_epoch > epoch or len(withdrawals) == MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD:
834834
break
835835

836836
validator = state.validators[withdrawal.index]
@@ -1110,7 +1110,9 @@ def process_execution_layer_withdrawal_request(
11101110

11111111
# Verify withdrawal credentials
11121112
is_execution_address = validator.withdrawal_credentials[:1] == ETH1_ADDRESS_WITHDRAWAL_PREFIX
1113-
is_correct_source_address = validator.withdrawal_credentials[12:] == execution_layer_withdrawal_request.source_address
1113+
is_correct_source_address = (
1114+
validator.withdrawal_credentials[12:] == execution_layer_withdrawal_request.source_address
1115+
)
11141116
if not (is_execution_address and is_correct_source_address):
11151117
return
11161118
# Verify the validator is active
@@ -1129,7 +1131,6 @@ def process_execution_layer_withdrawal_request(
11291131
# Only exit validator if it has no pending withdrawals in the queue
11301132
if pending_balance_to_withdraw == 0:
11311133
initiate_validator_exit(state, index)
1132-
11331134
return
11341135

11351136
has_sufficient_effective_balance = validator.effective_balance >= MIN_ACTIVATION_BALANCE

0 commit comments

Comments
 (0)