Skip to content

Commit e1840a7

Browse files
committed
bugfix: check for all possible credentials when processing EL withdrawal request
1 parent 3553498 commit e1840a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/electra/beacon-chain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,11 +1109,11 @@ def process_execution_layer_withdrawal_request(
11091109
validator = state.validators[index]
11101110

11111111
# Verify withdrawal credentials
1112-
is_execution_address = validator.withdrawal_credentials[:1] == ETH1_ADDRESS_WITHDRAWAL_PREFIX
1112+
has_correct_credential = has_execution_withdrawal_credential(validator)
11131113
is_correct_source_address = (
11141114
validator.withdrawal_credentials[12:] == execution_layer_withdrawal_request.source_address
11151115
)
1116-
if not (is_execution_address and is_correct_source_address):
1116+
if not (has_correct_credential and is_correct_source_address):
11171117
return
11181118
# Verify the validator is active
11191119
if not is_active_validator(validator, get_current_epoch(state)):

0 commit comments

Comments
 (0)