mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 12:10:05 +00:00
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:
parent
cac5d0f234
commit
b1e08307ed
@ -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++ {
|
for i := types.Slot(0); i < params.BeaconConfig().SlotsPerEpoch; i++ {
|
||||||
startTime := slots.StartTime(v.genesisTime, slotOffset+i)
|
startTime := slots.StartTime(v.genesisTime, slotOffset+i)
|
||||||
durationTillDuty := time.Until(startTime)
|
durationTillDuty := time.Until(startTime) + time.Second
|
||||||
|
|
||||||
if len(attesterKeys[i]) > 0 {
|
if len(attesterKeys[i]) > 0 {
|
||||||
log.WithFields(logrus.Fields{
|
log.WithFields(logrus.Fields{
|
||||||
|
Loading…
Reference in New Issue
Block a user