Skip to content

Commit

Permalink
using u64 instead of &u64 I think this might have been the issue but …
Browse files Browse the repository at this point in the history
…have not tested yet
  • Loading branch information
GeemoCandama committed Sep 2, 2023
1 parent c0ab805 commit b0da5a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions beacon_node/operation_pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -232,6 +232,7 @@ impl<T: EthSpec> OperationPool<T> {
spec: &'a ChainSpec,
) -> Vec<(&CompactAttestationData, CompactIndexedAttestation<T>)> {
let mut cliqued_atts: Vec<(&CompactAttestationData, CompactIndexedAttestation<T>)> = vec![];

if let Some(AttestationDataMap {
aggregate_attestations,
unaggregate_attestations,
Expand Down Expand Up @@ -817,8 +818,8 @@ fn is_compatible<T: EthSpec>(
x: &&CompactIndexedAttestation<T>,
y: &&CompactIndexedAttestation<T>,
) -> 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<u64> = x.attesting_indices.iter().cloned().collect();
let y_attester_set: HashSet<u64> = y.attesting_indices.iter().cloned().collect();
x_attester_set.is_disjoint(&y_attester_set)
}

Expand Down

0 comments on commit b0da5a1

Please sign in to comment.