From 8737984e19773d11233873713bcc7b21874ba3b9 Mon Sep 17 00:00:00 2001 From: protolambda Date: Tue, 28 May 2019 16:05:25 +0200 Subject: [PATCH] introduce back assert, modified to allow valid but non-effective calls --- specs/core/0_beacon-chain.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index e873aa4ed..9dc052ec4 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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