mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-01 18:50:35 +00:00
Update tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
This commit is contained in:
parent
ee32adb5a4
commit
956b33c452
@ -383,7 +383,13 @@ def _run_include_votes_of_another_empty_chain(spec, state, enough_ffg, is_justif
|
||||
# to next epoch
|
||||
next_epoch(spec, state)
|
||||
on_tick_and_append_step(spec, store, current_time, test_steps)
|
||||
assert spec.get_head(store) == signed_block_y.message.hash_tree_root()
|
||||
current_time = state.slot * spec.config.SECONDS_PER_SLOT + store.genesis_time
|
||||
on_tick_and_append_step(spec, store, current_time, test_steps)
|
||||
if is_justifying_previous_epoch:
|
||||
assert spec.get_head(store) == signed_block_z.message.hash_tree_root()
|
||||
else:
|
||||
assert spec.get_head(store) == signed_block_y.message.hash_tree_root()
|
||||
|
||||
next_epoch(spec, state)
|
||||
current_time = state.slot * spec.config.SECONDS_PER_SLOT + store.genesis_time
|
||||
on_tick_and_append_step(spec, store, current_time, test_steps)
|
||||
|
Loading…
x
Reference in New Issue
Block a user