Update Attestation schedule... log for clarify (#8148)

* Don't use fraction, use different fields

* Update validator/client/validator.go

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>

* Go fmt

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao 2020-12-17 11:12:41 -08:00 committed by GitHub
parent 46c67f1e9e
commit 756ccbe5e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,9 +592,10 @@ func (v *validator) logDuties(slot uint64, duties []*ethpb.DutiesResponse_Duty)
for i := uint64(0); i < params.BeaconConfig().SlotsPerEpoch; i++ {
if len(attesterKeys[i]) > 0 {
log.WithFields(logrus.Fields{
"slot": slotOffset + i,
"attesters": fmt.Sprintf("%d/%d", len(attesterKeys[i]), totalAttestingKeys),
"pubKeys": attesterKeys[i],
"slot": slotOffset + i,
"attesterDutiesAtSlot": len(attesterKeys[i]),
"totalAttestersInEpoch": totalAttestingKeys,
"pubKeys": attesterKeys[i],
}).Info("Attestation schedule")
}
if proposerKeys[i] != "" {