introduce back assert, modified to allow valid but non-effective calls

This commit is contained in:
protolambda 2019-05-28 16:05:25 +02:00
parent 401dba3230
commit 8737984e19
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 0 deletions

View File

@ -1248,6 +1248,7 @@ def state_transition(state: BeaconState, block: BeaconBlock, validate_state_root
```python
def process_slots(state: BeaconState, slot: Slot) -> None:
assert state.slot <= slot
while state.slot < slot:
process_slot(state)
# Process epoch on the first slot of the next epoch