mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-02 03:02:54 -04:00
Better log for Requesting block for pending attestation... (#4731)
* Better log * Use debug * Merge branch 'master' into req-blk-log * Merge branch 'master' into req-blk-log
This commit is contained in:
@@ -90,7 +90,12 @@ func (s *Service) processPendingAtts(ctx context.Context) error {
|
||||
delete(s.blkRootToPendingAtts, bRoot)
|
||||
} else {
|
||||
// Pending attestation's missing block has not arrived yet.
|
||||
log.WithField("blockRoot", hex.EncodeToString(bytesutil.Trunc(bRoot[:]))).Info("Requesting block for pending attestation")
|
||||
log.WithFields(logrus.Fields{
|
||||
"currentSlot": s.chain.CurrentSlot(),
|
||||
"attSlot": attestations[0].Aggregate.Data.Slot,
|
||||
"attCount": len(attestations),
|
||||
"blockRoot": hex.EncodeToString(bytesutil.Trunc(bRoot[:])),
|
||||
}).Debug("Requesting block for pending attestation")
|
||||
|
||||
// Start with a random peer to query, but choose the first peer in our unsorted list that claims to
|
||||
// have a head slot newer or equal to the pending attestation's target boundary slot.
|
||||
|
||||
Reference in New Issue
Block a user