Optimize committee helpers (#4328)

This commit is contained in:
terence tsao
2019-12-19 15:40:51 -08:00
committed by GitHub
parent da637668a8
commit 2e4908e7c4
23 changed files with 161 additions and 118 deletions

View File

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