Fix UpdateCommitteeCache slot (#4074)

This commit is contained in:
terence tsao 2019-11-20 21:29:43 -08:00 committed by GitHub
parent ae07dc7962
commit 835418d1e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ func UpdateCommitteeCache(state *pb.BeaconState) error {
if err != nil {
return err
}
count, err := CommitteeCountAtSlot(state, epoch*params.BeaconConfig().SlotsPerEpoch)
count, err := CommitteeCountAtSlot(state, StartSlot(epoch))
if err != nil {
return err
}