@@ -583,14 +583,14 @@ fn attestation_to_unknown_block_processed(import_method: BlockImportMethod) {
583583
584584 // Send the attestation but not the block, and check that it was not imported.
585585
586- let initial_attns = rig. chain . naive_aggregation_pool . read ( ) . num_attestations ( ) ;
586+ let initial_attns = rig. chain . naive_aggregation_pool . read ( ) . num_items ( ) ;
587587
588588 rig. enqueue_next_block_unaggregated_attestation ( ) ;
589589
590590 rig. assert_event_journal ( & [ GOSSIP_ATTESTATION , WORKER_FREED , NOTHING_TO_DO ] ) ;
591591
592592 assert_eq ! (
593- rig. chain. naive_aggregation_pool. read( ) . num_attestations ( ) ,
593+ rig. chain. naive_aggregation_pool. read( ) . num_items ( ) ,
594594 initial_attns,
595595 "Attestation should not have been included."
596596 ) ;
@@ -621,7 +621,7 @@ fn attestation_to_unknown_block_processed(import_method: BlockImportMethod) {
621621 ) ;
622622
623623 assert_eq ! (
624- rig. chain. naive_aggregation_pool. read( ) . num_attestations ( ) ,
624+ rig. chain. naive_aggregation_pool. read( ) . num_items ( ) ,
625625 initial_attns + 1 ,
626626 "Attestation should have been included."
627627 ) ;
@@ -712,14 +712,14 @@ fn requeue_unknown_block_gossip_attestation_without_import() {
712712
713713 // Send the attestation but not the block, and check that it was not imported.
714714
715- let initial_attns = rig. chain . naive_aggregation_pool . read ( ) . num_attestations ( ) ;
715+ let initial_attns = rig. chain . naive_aggregation_pool . read ( ) . num_items ( ) ;
716716
717717 rig. enqueue_next_block_unaggregated_attestation ( ) ;
718718
719719 rig. assert_event_journal ( & [ GOSSIP_ATTESTATION , WORKER_FREED , NOTHING_TO_DO ] ) ;
720720
721721 assert_eq ! (
722- rig. chain. naive_aggregation_pool. read( ) . num_attestations ( ) ,
722+ rig. chain. naive_aggregation_pool. read( ) . num_items ( ) ,
723723 initial_attns,
724724 "Attestation should not have been included."
725725 ) ;
@@ -732,7 +732,7 @@ fn requeue_unknown_block_gossip_attestation_without_import() {
732732 ) ;
733733
734734 assert_eq ! (
735- rig. chain. naive_aggregation_pool. read( ) . num_attestations ( ) ,
735+ rig. chain. naive_aggregation_pool. read( ) . num_items ( ) ,
736736 initial_attns,
737737 "Attestation should not have been included."
738738 ) ;
@@ -753,7 +753,7 @@ fn requeue_unknown_block_gossip_aggregated_attestation_without_import() {
753753 rig. assert_event_journal ( & [ GOSSIP_AGGREGATE , WORKER_FREED , NOTHING_TO_DO ] ) ;
754754
755755 assert_eq ! (
756- rig. chain. naive_aggregation_pool. read( ) . num_attestations ( ) ,
756+ rig. chain. naive_aggregation_pool. read( ) . num_items ( ) ,
757757 initial_attns,
758758 "Attestation should not have been included."
759759 ) ;
0 commit comments