mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Refactor attestationutil.AttestingIndices (#5159)
* Refactor AttestingIndices to not return any error. Add tests. Add shortcut for fully attested attestation * attestationutil.ConvertToIndexed never returned error either * fix test * remove shortcut * revert test...
This commit is contained in:
@@ -100,10 +100,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
indices, err := attestationutil.AttestingIndices(att.AggregationBits, committee)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
indices := attestationutil.AttestingIndices(att.AggregationBits, committee)
|
||||
for _, i := range indices {
|
||||
m[r].score[i] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user