Sketch op pool changes

This commit is contained in:
Michael Sproul
2024-05-09 17:45:52 +10:00
parent 43c3f63e30
commit 7cb7653d36
3 changed files with 91 additions and 36 deletions

View File

@@ -247,6 +247,9 @@ impl<'a, E: EthSpec> AttestationRef<'a, E> {
impl<E: EthSpec> AttestationElectra<E> {
/// Are the aggregation bitfields of these attestations disjoint?
// TODO(electra): check whether the definition from CompactIndexedAttestation::should_aggregate
// is useful where this is used, i.e. only consider attestations disjoint when their committees
// match AND their aggregation bits do not intersect.
pub fn signers_disjoint_from(&self, other: &Self) -> bool {
self.aggregation_bits
.intersection(&other.aggregation_bits)