mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user