Skip to content

Commit a43ff71

Browse files
committed
Fix test_simple_attempted_reorg_without_enough_ffg_votes
1 parent c5cbbe9 commit a43ff71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_simple_attempted_reorg_without_enough_ffg_votes(spec, state):
102102
block_y = build_empty_block_for_next_slot(spec, state)
103103
signed_block_y = state_transition_and_sign_block(spec, state, block_y)
104104
signed_blocks_of_y.append(signed_block_y)
105+
payload_state_transition_no_store(spec, state, signed_block_y.message)
105106

106107
# chain y has some on-chain attestations, but not enough to justify c4
107108
signed_block_y = state_transition_with_full_block(spec, state, True, True)
@@ -117,6 +118,7 @@ def test_simple_attempted_reorg_without_enough_ffg_votes(spec, state):
117118
block_z.body.attestations = [attestation]
118119
signed_block_z = state_transition_and_sign_block(spec, state, block_z)
119120
signed_blocks_of_z.append(signed_block_z)
121+
payload_state_transition_no_store(spec, state, signed_block_z.message)
120122

121123
# add an empty block on chain z
122124
block_z = build_empty_block_for_next_slot(spec, state)
@@ -395,7 +397,6 @@ def _run_include_votes_of_another_empty_chain(spec, state, enough_ffg, is_justif
395397
):
396398
block.body.attestations = attestations_for_y.pop(0)
397399
signed_block_z = state_transition_and_sign_block(spec, state, block)
398-
print("Trying to import block: ", signed_block_z.message.slot)
399400
if signed_block_y != signed_block_z:
400401
yield from tick_and_add_block(spec, store, signed_block_z, test_steps)
401402
state = payload_state_transition(spec, store, signed_block_z.message).copy()

0 commit comments

Comments
 (0)