introduce back assert, modified to allow valid but non-effective calls
This commit is contained in:
parent
401dba3230
commit
8737984e19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue