@@ -82,7 +82,7 @@ pub enum OpPoolError {
8282
8383#[ derive( Default ) ]
8484pub struct AttestationStats {
85- /// Total number of attestations for all committeees /indices/votes.
85+ /// Total number of attestations for all committees /indices/votes.
8686 pub num_attestations : usize ,
8787 /// Number of unique `AttestationData` attested to.
8888 pub num_attestation_data : usize ,
@@ -232,6 +232,7 @@ impl<T: EthSpec> OperationPool<T> {
232232 spec : & ' a ChainSpec ,
233233 ) -> Vec < ( & CompactAttestationData , CompactIndexedAttestation < T > ) > {
234234 let mut cliqued_atts: Vec < ( & CompactAttestationData , CompactIndexedAttestation < T > ) > = vec ! [ ] ;
235+
235236 if let Some ( AttestationDataMap {
236237 aggregate_attestations,
237238 unaggregate_attestations,
@@ -817,8 +818,8 @@ fn is_compatible<T: EthSpec>(
817818 x : & & CompactIndexedAttestation < T > ,
818819 y : & & CompactIndexedAttestation < T > ,
819820) -> bool {
820- let x_attester_set: HashSet < _ > = x. attesting_indices . iter ( ) . collect ( ) ;
821- let y_attester_set: HashSet < _ > = y. attesting_indices . iter ( ) . collect ( ) ;
821+ let x_attester_set: HashSet < u64 > = x. attesting_indices . iter ( ) . cloned ( ) . collect ( ) ;
822+ let y_attester_set: HashSet < u64 > = y. attesting_indices . iter ( ) . cloned ( ) . collect ( ) ;
822823 x_attester_set. is_disjoint ( & y_attester_set)
823824}
824825
0 commit comments