Update chain/sub/incoming.go

Co-authored-by: raulk <raul@protocol.ai>
This commit is contained in:
Aayush Rajasekaran 2021-03-05 01:09:07 -05:00 committed by GitHub
parent 22e465ba9c
commit 374bd9b578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, s *cha
[]tag.Mutator{tag.Insert(metrics.MinerID, blk.Header.Miner.String())},
metrics.BlockDelay.M(delay),
)
log.Warnf("Received block %s with large delay %d from miner %s", blk.Cid(), delay, blk.Header.Miner)
log.Warnw("received block with large delay from miner", "block", blk.Cid(), "delay", delay, "miner", blk.Header.Miner)
}
if s.InformNewBlock(msg.ReceivedFrom, &types.FullBlock{