mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 04:44:57 -05:00
Merge pull request #3550 from ethereum/on-tick-precondition
Check `assert time >= store.time` in fork-choice tests
This commit is contained in:
@@ -144,6 +144,7 @@ def get_blobs_file_name(blobs=None, blobs_root=None):
|
||||
|
||||
|
||||
def on_tick_and_append_step(spec, store, time, test_steps):
|
||||
assert time >= store.time
|
||||
spec.on_tick(store, time)
|
||||
test_steps.append({'tick': int(time)})
|
||||
output_store_checks(spec, store, test_steps)
|
||||
|
||||
Reference in New Issue
Block a user