Skip to content

Commit

Permalink
Reproduce the bug
Browse files Browse the repository at this point in the history
A bug in a test case hid a bug in the code:
prunes_abandoned_fork_between_two_finalized_checkpoints: contrary to its
name, the abandoned fork isn't actually wholly contained between two
finalized checkpoints in terms of slot values.
  • Loading branch information
adaszko committed Aug 11, 2020
1 parent b063df5 commit d16d405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/tests/store_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ fn prunes_abandoned_fork_between_two_finalized_checkpoints() {
let (stray_blocks, stray_states, _, stray_head, _) = harness.add_stray_blocks(
harness.get_head_state(),
slot,
slots_per_epoch - 1,
slots_per_epoch - 3,
&faulty_validators,
);

Expand Down

0 comments on commit d16d405

Please sign in to comment.