From 581a64be2b5c838d209a33ef157ee2db873543e3 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 30 Nov 2023 18:56:51 +0800 Subject: [PATCH] cleanup leftover --- tests/core/pyspec/eth2spec/test/helpers/fork_choice.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/helpers/fork_choice.py b/tests/core/pyspec/eth2spec/test/helpers/fork_choice.py index e63bda641..094e2e8a5 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/fork_choice.py +++ b/tests/core/pyspec/eth2spec/test/helpers/fork_choice.py @@ -60,8 +60,7 @@ def tick_and_add_block(spec, store, signed_block, test_steps, valid=True, block_time = pre_state.genesis_time + signed_block.message.slot * spec.config.SECONDS_PER_SLOT while store.time < block_time: time = pre_state.genesis_time + (spec.get_current_slot(store) + 1) * spec.config.SECONDS_PER_SLOT - if time > store.time: - on_tick_and_append_step(spec, store, time, test_steps) + on_tick_and_append_step(spec, store, time, test_steps) post_state = yield from add_block( spec, store, signed_block, test_steps, @@ -146,10 +145,9 @@ 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 - if store.time < time: - spec.on_tick(store, time) - test_steps.append({'tick': int(time)}) - output_store_checks(spec, store, test_steps) + spec.on_tick(store, time) + test_steps.append({'tick': int(time)}) + output_store_checks(spec, store, test_steps) def run_on_block(spec, store, signed_block, valid=True):