Skip to content

Commit

Permalink
Merge pull request #2877 from zilm13/fix/equivocating-indices
Browse files Browse the repository at this point in the history
Yield attestation in equivocating indices test
  • Loading branch information
hwwhww authored May 3, 2022
2 parents 9e09e96 + b9cb294 commit 8a4ea1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
get_genesis_forkchoice_store_and_block,
get_formatted_head_output,
on_tick_and_append_step,
run_on_attestation,
add_attestation,
tick_and_run_on_attestation,
tick_and_add_block,
)
Expand Down Expand Up @@ -409,7 +409,7 @@ def test_discard_equivocations(spec, state):

# Process attestation
# The head should change to block_1
run_on_attestation(spec, store, attestation)
yield from add_attestation(spec, store, attestation, test_steps)
assert spec.get_head(store) == spec.hash_tree_root(block_1)

# Process attester_slashing
Expand Down

0 comments on commit 8a4ea1d

Please sign in to comment.