Add proposer index and graffiti to received block log (#10564)

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
terence tsao 2022-04-25 13:51:10 -07:00 committed by GitHub
parent 7003d97061
commit c0e207eb47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,8 @@ func (s *Service) validateBeaconBlockPubSub(ctx context.Context, pid peer.ID, ms
log.WithFields(logrus.Fields{
"blockSlot": blk.Block().Slot(),
"sinceSlotStartTime": receivedTime.Sub(startTime),
"proposerIndex": blk.Block().ProposerIndex(),
"graffiti": string(blk.Block().Body().Graffiti()),
}).Debug("Received block")
return pubsub.ValidationAccept, nil
}