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

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