mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 11:44:56 -05:00
Merge pull request #3660 from ethereum/ralexstokes-patch-2
EIP-7002: Bugfix when processing execution layer exit request
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user