From 17d0af62d3dc2ee1d11826648fa9cbe68f98e87f Mon Sep 17 00:00:00 2001 From: Scott Fairclough Date: Fri, 16 Feb 2024 12:30:38 +0000 Subject: [PATCH 1/2] reduce noise from txpool at info level logging --- zk/txpool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk/txpool/pool.go b/zk/txpool/pool.go index 48b99bce643..bf0fef28249 100644 --- a/zk/txpool/pool.go +++ b/zk/txpool/pool.go @@ -1323,7 +1323,7 @@ func MainLoop(ctx context.Context, db kv.RwDB, coreDB kv.RoDB, p *TxPool, newTxs hashSentTo := send.AnnouncePooledTxs(localTxTypes, localTxSizes, localTxHashes) for i := 0; i < localTxHashes.Len(); i++ { hash := localTxHashes.At(i) - log.Info("local tx propagated", "tx_hash", hex.EncodeToString(hash), "announced to peers", hashSentTo[i], "broadcast to peers", txSentTo[i], "baseFee", p.pendingBaseFee.Load()) + log.Debug("local tx propagated", "tx_hash", hex.EncodeToString(hash), "announced to peers", hashSentTo[i], "broadcast to peers", txSentTo[i], "baseFee", p.pendingBaseFee.Load()) } send.BroadcastPooledTxs(remoteTxRlps) send.AnnouncePooledTxs(remoteTxTypes, remoteTxSizes, remoteTxHashes) From ea9504991bbb2ea09d56593dab5aa2504600410e Mon Sep 17 00:00:00 2001 From: Scott Fairclough Date: Fri, 16 Feb 2024 12:34:26 +0000 Subject: [PATCH 2/2] reduce noise when receiving transactions --- cmd/rpcdaemon/commands/send_transaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rpcdaemon/commands/send_transaction.go b/cmd/rpcdaemon/commands/send_transaction.go index fb14db759e0..346c998498f 100644 --- a/cmd/rpcdaemon/commands/send_transaction.go +++ b/cmd/rpcdaemon/commands/send_transaction.go @@ -80,9 +80,9 @@ func (api *APIImpl) SendRawTransaction(ctx context.Context, encodedTx hexutility if txn.GetTo() == nil { addr := crypto.CreateAddress(from, txn.GetNonce()) - log.Info("Submitted contract creation", "hash", txn.Hash().Hex(), "from", from, "nonce", txn.GetNonce(), "contract", addr.Hex(), "value", txn.GetValue()) + log.Debug("Submitted contract creation", "hash", txn.Hash().Hex(), "from", from, "nonce", txn.GetNonce(), "contract", addr.Hex(), "value", txn.GetValue()) } else { - log.Info("Submitted transaction", "hash", txn.Hash().Hex(), "from", from, "nonce", txn.GetNonce(), "recipient", txn.GetTo(), "value", txn.GetValue()) + log.Debug("Submitted transaction", "hash", txn.Hash().Hex(), "from", from, "nonce", txn.GetNonce(), "recipient", txn.GetTo(), "value", txn.GetValue()) } return txn.Hash(), nil