mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Fix assert
This commit is contained in:
@@ -230,13 +230,10 @@ impl<E: EthSpec> CompactIndexedAttestationElectra<E> {
|
|||||||
|
|
||||||
pub fn aggregate_with_disjoint_committees(&mut self, other: &Self) {
|
pub fn aggregate_with_disjoint_committees(&mut self, other: &Self) {
|
||||||
// TODO(electra): remove asserts or use Result
|
// TODO(electra): remove asserts or use Result
|
||||||
assert!(
|
assert!(self
|
||||||
self.committee_bits
|
.committee_bits
|
||||||
.intersection(&other.committee_bits)
|
.intersection(&other.committee_bits)
|
||||||
.is_zero(),
|
.is_zero(),);
|
||||||
self.committee_bits,
|
|
||||||
other.committee_bits
|
|
||||||
);
|
|
||||||
// The attestation being aggregated in must only have 1 committee bit set.
|
// The attestation being aggregated in must only have 1 committee bit set.
|
||||||
assert_eq!(other.committee_bits.num_set_bits(), 1);
|
assert_eq!(other.committee_bits.num_set_bits(), 1);
|
||||||
// Check we are aggregating in increasing committee index order (so we can append
|
// Check we are aggregating in increasing committee index order (so we can append
|
||||||
|
|||||||
Reference in New Issue
Block a user