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:
Preston Van Loon
2020-03-21 17:23:37 -07:00
committed by GitHub
parent 4f8d9c59dd
commit d06b0e8a86
20 changed files with 88 additions and 81 deletions

View File

@@ -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
}