Fix time to duty to round slot number (#11371)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terencechain 2022-08-31 12:54:44 -07:00 committed by GitHub
parent cac5d0f234
commit b1e08307ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -938,7 +938,7 @@ func (v *validator) logDuties(slot types.Slot, duties []*ethpb.DutiesResponse_Du
}
for i := types.Slot(0); i < params.BeaconConfig().SlotsPerEpoch; i++ {
startTime := slots.StartTime(v.genesisTime, slotOffset+i)
durationTillDuty := time.Until(startTime)
durationTillDuty := time.Until(startTime) + time.Second
if len(attesterKeys[i]) > 0 {
log.WithFields(logrus.Fields{