From 2aa76a992625d098ecc1a0af73de983998209e61 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Mon, 10 Jun 2024 12:32:17 +0530 Subject: [PATCH] eth: change block propagation and announcement logs to debug --- eth/handler.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eth/handler.go b/eth/handler.go index ddcf5d1e3b..c3bf06c9dd 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -623,15 +623,13 @@ func (h *handler) BroadcastBlock(block *types.Block, propagate bool) { peer.AsyncSendNewBlock(block, td) } - log.Trace("Propagated block", "hash", hash, "recipients", len(transfer), "duration", common.PrettyDuration(time.Since(block.ReceivedAt))) - // Send the block to the trusted and static peers for _, peer := range staticAndTrustedPeers { log.Trace("Propagating block to static and trusted peer", "hash", hash, "peerID", peer.ID()) peer.AsyncSendNewBlock(block, td) } - log.Trace("Propagated same block to additional static and trusted peers", "hash", hash, "recipients", len(staticAndTrustedPeers), "duration", common.PrettyDuration(time.Since(block.ReceivedAt))) + log.Debug("Propagated block", "hash", hash, "recipients", len(transfer), "static and trusted recipients", len(staticAndTrustedPeers), "duration", common.PrettyDuration(time.Since(block.ReceivedAt))) return } @@ -641,7 +639,7 @@ func (h *handler) BroadcastBlock(block *types.Block, propagate bool) { peer.AsyncSendNewBlockHash(block) } - log.Trace("Announced block", "hash", hash, "recipients", len(peers), "duration", common.PrettyDuration(time.Since(block.ReceivedAt))) + log.Debug("Announced block", "hash", hash, "recipients", len(peers), "duration", common.PrettyDuration(time.Since(block.ReceivedAt))) } }