mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Add In Duty Logging (#11301)
* add it in * use time until * potuz's review Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
ab7e97ba63
commit
e910471784
@ -937,17 +937,21 @@ 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)
|
||||
|
||||
if len(attesterKeys[i]) > 0 {
|
||||
log.WithFields(logrus.Fields{
|
||||
"slot": slotOffset + i,
|
||||
"slotInEpoch": (slotOffset + i) % params.BeaconConfig().SlotsPerEpoch,
|
||||
"timeTillDuty": durationTillDuty.Round(time.Second),
|
||||
"attesterDutiesAtSlot": len(attesterKeys[i]),
|
||||
"totalAttestersInEpoch": totalAttestingKeys,
|
||||
"pubKeys": attesterKeys[i],
|
||||
}).Info("Attestation schedule")
|
||||
}
|
||||
if proposerKeys[i] != "" {
|
||||
log.WithField("slot", slotOffset+i).WithField("pubKey", proposerKeys[i]).Info("Proposal schedule")
|
||||
log.WithField("slot", slotOffset+i).WithField("timeTillDuty", durationTillDuty.Round(time.Second)).WithField("pubKey", proposerKeys[i]).Info("Proposal schedule")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user