Skip to content

Commit

Permalink
Merge pull request #3660 from ethereum/ralexstokes-patch-2
Browse files Browse the repository at this point in the history
EIP-7002: Bugfix when processing execution layer exit request
  • Loading branch information
hwwhww authored Apr 9, 2024
2 parents dd2721f + 1db1c54 commit 93dba67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion specs/_features/eip7002/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ def process_operations(state: BeaconState, body: BeaconBlockBody) -> None:
```python
def process_execution_layer_exit(state: BeaconState, execution_layer_exit: ExecutionLayerExit) -> None:
validator_pubkeys = [v.pubkey for v in state.validators]
validator_index = ValidatorIndex(validator_pubkeys.index(execution_layer_exit.validator_pubkey))
# Verify pubkey exists
pubkey_to_exit = execution_layer_exit.validator_pubkey
if pubkey_to_exit not in validator_pubkeys:
return
validator_index = ValidatorIndex(validator_pubkeys.index(pubkey_to_exit))
validator = state.validators[validator_index]

# Verify withdrawal credentials
Expand Down

0 comments on commit 93dba67

Please sign in to comment.