From dbcc35ff1cdb9c7c28be81e9dbdf4791d7bd96e5 Mon Sep 17 00:00:00 2001 From: tornadocontrib Date: Sat, 2 Nov 2024 09:13:30 +0000 Subject: [PATCH] Disable logging transactions --- internal/ethapi/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index a502952893..a91c599889 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1908,12 +1908,16 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c return common.Hash{}, err } + _ = from + + /** if tx.To() == nil { addr := crypto.CreateAddress(from, tx.Nonce()) log.Info("Submitted contract creation", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "contract", addr.Hex(), "value", tx.Value()) } else { log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value()) } + **/ return tx.Hash(), nil }