From 72548cb54e4a95f800e3b0591dba68ca0af7c6d5 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Fri, 10 May 2024 12:49:15 +1000 Subject: [PATCH] Fix assert --- beacon_node/operation_pool/src/attestation_storage.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/beacon_node/operation_pool/src/attestation_storage.rs b/beacon_node/operation_pool/src/attestation_storage.rs index 4cc783e64f2..f06da2afb17 100644 --- a/beacon_node/operation_pool/src/attestation_storage.rs +++ b/beacon_node/operation_pool/src/attestation_storage.rs @@ -230,13 +230,10 @@ impl CompactIndexedAttestationElectra { 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