Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
ff88d22f9a
commit
3d8e0f1920
|
@ -1798,7 +1798,7 @@ Verify that `len(block.body.voluntary_exits) <= MAX_VOLUNTARY_EXITS`.
|
||||||
For each `exit` in `block.body.voluntary_exits`, run the following function:
|
For each `exit` in `block.body.voluntary_exits`, run the following function:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def process_exit(exit: VoluntaryExit, state: BeaconState):
|
def process_exit(state: BeaconState, exit: VoluntaryExit) -> None:
|
||||||
validator = state.validator_registry[exit.validator_index]
|
validator = state.validator_registry[exit.validator_index]
|
||||||
# Verify the validator has not yet exited
|
# Verify the validator has not yet exited
|
||||||
assert validator.exit_epoch > get_delayed_activation_exit_epoch(get_current_epoch(state))
|
assert validator.exit_epoch > get_delayed_activation_exit_epoch(get_current_epoch(state))
|
||||||
|
|
Loading…
Reference in New Issue