Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed May 10, 2024
1 parent 16265ef commit 72548cb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions beacon_node/operation_pool/src/attestation_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,10 @@ impl<E: EthSpec> CompactIndexedAttestationElectra<E> {

pub fn aggregate_with_disjoint_committees(&mut self, other: &Self) {
// TODO(electra): remove asserts or use Result
assert!(
self.committee_bits
.intersection(&other.committee_bits)
.is_zero(),
self.committee_bits,
other.committee_bits
);
assert!(self
.committee_bits
.intersection(&other.committee_bits)
.is_zero(),);
// The attestation being aggregated in must only have 1 committee bit set.
assert_eq!(other.committee_bits.num_set_bits(), 1);
// Check we are aggregating in increasing committee index order (so we can append
Expand Down

0 comments on commit 72548cb

Please sign in to comment.