AttestingIndices: Make beacon committee be an argument (#4284)

* make beacon committee be an argument
* remove state from ConvertToIndexed
* Merge branch 'master' into refactor-AttestingIndices-committee
* Merge branch 'master' into refactor-AttestingIndices-committee
* Merge branch 'master' into refactor-AttestingIndices-committee
* Merge refs/heads/master into refactor-AttestingIndices-committee
This commit is contained in:
Preston Van Loon
2019-12-14 23:02:50 -06:00
committed by prylabs-bulldozer[bot]
parent 2179ac683e
commit 325a2503f7
14 changed files with 120 additions and 36 deletions

View File

@@ -95,7 +95,11 @@ func main() {
}
// Retrieve attestation indices
for _, att := range atts {
indices, err := helpers.AttestingIndices(state, att.Data, att.AggregationBits)
committee, err := helpers.BeaconCommittee(state, att.Data.Slot, att.Data.CommitteeIndex)
if err != nil {
panic(err)
}
indices, err := helpers.AttestingIndices(att.AggregationBits, committee)
if err != nil {
panic(err)
}