Skip to content

Commit b0da5a1

Browse files
committed
using u64 instead of &u64 I think this might have been the issue but have not tested yet
1 parent c0ab805 commit b0da5a1

File tree

1 file changed

+4
-3
lines changed
  • beacon_node/operation_pool/src

1 file changed

+4
-3
lines changed

beacon_node/operation_pool/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub enum OpPoolError {
8282

8383
#[derive(Default)]
8484
pub 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

Comments
 (0)