add comment

This commit is contained in:
Hsiao-Wei Wang 2024-04-09 10:33:48 +08:00 committed by GitHub
parent 3cf3e21504
commit 1db1c54323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ 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]
# Verify pubkey exists
pubkey_to_exit = execution_layer_exit.validator_pubkey
if pubkey_to_exit not in validator_pubkeys:
return