Swap ImportQueue from a Map to a Vec

There's an edge case where different blocks can have the same block
body.
This commit is contained in:
Paul Hauner
2019-03-24 14:22:12 +11:00
parent 15f853416b
commit 5f4f67f46f
3 changed files with 45 additions and 21 deletions

View File

@@ -511,7 +511,10 @@ fn sync_two_nodes() {
// Node A builds out a longer, better chain.
for _ in 0..blocks {
// Node A should build a block.
node_a.harness.advance_chain_with_block();
// Node B should just increment it's slot without a block.
node_b.harness.increment_beacon_chain_slot();
}
node_a.harness.run_fork_choice();