Decompose Electra block attestations (#14896)

* Decompose Electra block attestations

* comments

* changelog <3

* remove redundant comparison

* typo in comment

* fix changelog section name

* review from James and Sammy

* continue pruning on error

* only prune when committees are cached

* fix bad assignments in test
This commit is contained in:
Radosław Kapka
2025-03-05 11:01:33 +01:00
committed by GitHub
parent a7b016c954
commit 417bbf8a9e
12 changed files with 348 additions and 37 deletions

View File

@@ -6,6 +6,7 @@ import (
"bytes"
"context"
"fmt"
"runtime/debug"
"slices"
"sort"
@@ -100,6 +101,10 @@ func AttestingIndices(att ethpb.Att, committees ...[]primitives.ValidatorIndex)
for _, c := range committees {
committeesLen += len(c)
}
if aggBits.Len() == 0 {
fmt.Printf("committee_bits: %v, aggregation_bits: %v, slot: %d", att.CommitteeBitsVal(), att.GetAggregationBits(), att.GetData().Slot)
debug.PrintStack()
}
if aggBits.Len() != uint64(committeesLen) {
return nil, fmt.Errorf("bitfield length %d is not equal to committee length %d", aggBits.Len(), committeesLen)
}