mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
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:
committed by
prylabs-bulldozer[bot]
parent
2179ac683e
commit
325a2503f7
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user