Skip to content

Commit

Permalink
Update validator/client/validator.go
Browse files Browse the repository at this point in the history
Co-authored-by: Preston Van Loon <[email protected]>
  • Loading branch information
rauljordan and prestonvanloon authored Sep 29, 2022
1 parent a7bbdc6 commit 305a8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/client/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,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) + time.Second).Round(time.Second)
durationTillDuty := (time.Until(startTime) + time.Second).Truncate(time.Second) // Round up to next second.

if len(attesterKeys[i]) > 0 {
attestationLog := log.WithFields(logrus.Fields{
Expand Down

0 comments on commit 305a8a3

Please sign in to comment.