Skip to content

Commit

Permalink
Merge remote-tracking branch 'sean/sync-committee-pools' into network…
Browse files Browse the repository at this point in the history
…-altair
  • Loading branch information
michaelsproul committed Jul 15, 2021
2 parents d806e46 + 8e07e1a commit 87945c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions beacon_node/network/src/beacon_processor/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,14 +583,14 @@ fn attestation_to_unknown_block_processed(import_method: BlockImportMethod) {

// Send the attestation but not the block, and check that it was not imported.

let initial_attns = rig.chain.naive_aggregation_pool.read().num_attestations();
let initial_attns = rig.chain.naive_aggregation_pool.read().num_items();

rig.enqueue_next_block_unaggregated_attestation();

rig.assert_event_journal(&[GOSSIP_ATTESTATION, WORKER_FREED, NOTHING_TO_DO]);

assert_eq!(
rig.chain.naive_aggregation_pool.read().num_attestations(),
rig.chain.naive_aggregation_pool.read().num_items(),
initial_attns,
"Attestation should not have been included."
);
Expand Down Expand Up @@ -621,7 +621,7 @@ fn attestation_to_unknown_block_processed(import_method: BlockImportMethod) {
);

assert_eq!(
rig.chain.naive_aggregation_pool.read().num_attestations(),
rig.chain.naive_aggregation_pool.read().num_items(),
initial_attns + 1,
"Attestation should have been included."
);
Expand Down Expand Up @@ -712,14 +712,14 @@ fn requeue_unknown_block_gossip_attestation_without_import() {

// Send the attestation but not the block, and check that it was not imported.

let initial_attns = rig.chain.naive_aggregation_pool.read().num_attestations();
let initial_attns = rig.chain.naive_aggregation_pool.read().num_items();

rig.enqueue_next_block_unaggregated_attestation();

rig.assert_event_journal(&[GOSSIP_ATTESTATION, WORKER_FREED, NOTHING_TO_DO]);

assert_eq!(
rig.chain.naive_aggregation_pool.read().num_attestations(),
rig.chain.naive_aggregation_pool.read().num_items(),
initial_attns,
"Attestation should not have been included."
);
Expand All @@ -732,7 +732,7 @@ fn requeue_unknown_block_gossip_attestation_without_import() {
);

assert_eq!(
rig.chain.naive_aggregation_pool.read().num_attestations(),
rig.chain.naive_aggregation_pool.read().num_items(),
initial_attns,
"Attestation should not have been included."
);
Expand All @@ -753,7 +753,7 @@ fn requeue_unknown_block_gossip_aggregated_attestation_without_import() {
rig.assert_event_journal(&[GOSSIP_AGGREGATE, WORKER_FREED, NOTHING_TO_DO]);

assert_eq!(
rig.chain.naive_aggregation_pool.read().num_attestations(),
rig.chain.naive_aggregation_pool.read().num_items(),
initial_attns,
"Attestation should not have been included."
);
Expand Down

0 comments on commit 87945c2

Please sign in to comment.