From b0da5a1dfffe306f28ff8387b7781d86b8a2c288 Mon Sep 17 00:00:00 2001 From: geemo Date: Fri, 1 Sep 2023 20:46:32 -0600 Subject: [PATCH] using u64 instead of &u64 I think this might have been the issue but have not tested yet --- beacon_node/operation_pool/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beacon_node/operation_pool/src/lib.rs b/beacon_node/operation_pool/src/lib.rs index 15f5d20b82f..e386429359d 100644 --- a/beacon_node/operation_pool/src/lib.rs +++ b/beacon_node/operation_pool/src/lib.rs @@ -82,7 +82,7 @@ pub enum OpPoolError { #[derive(Default)] pub struct AttestationStats { - /// Total number of attestations for all committeees/indices/votes. + /// Total number of attestations for all committees/indices/votes. pub num_attestations: usize, /// Number of unique `AttestationData` attested to. pub num_attestation_data: usize, @@ -232,6 +232,7 @@ impl OperationPool { spec: &'a ChainSpec, ) -> Vec<(&CompactAttestationData, CompactIndexedAttestation)> { let mut cliqued_atts: Vec<(&CompactAttestationData, CompactIndexedAttestation)> = vec![]; + if let Some(AttestationDataMap { aggregate_attestations, unaggregate_attestations, @@ -817,8 +818,8 @@ fn is_compatible( x: &&CompactIndexedAttestation, y: &&CompactIndexedAttestation, ) -> bool { - let x_attester_set: HashSet<_> = x.attesting_indices.iter().collect(); - let y_attester_set: HashSet<_> = y.attesting_indices.iter().collect(); + let x_attester_set: HashSet = x.attesting_indices.iter().cloned().collect(); + let y_attester_set: HashSet = y.attesting_indices.iter().cloned().collect(); x_attester_set.is_disjoint(&y_attester_set) }