From 3720c1a77d258daf592c1714abb30999a539460d Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Fri, 31 May 2024 19:14:16 -0400 Subject: [PATCH] feat: remove redundant loop --- miner/worker.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 563d52a2ff11..12d7010f92bf 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -797,7 +797,7 @@ func (w *worker) applyTransaction(env *environment, tx *types.Transaction) (*typ snap = env.state.Snapshot() gp = env.gasPool.Gas() ) - log.Info("executing transaction on node", "tx_hash", tx.Hash(), "coinbase", env.coinbase, "gas_available", gp) + log.Info("executing transaction on node", "tx_hash", tx.Hash(), "gas_available", gp) receipt, err := core.ApplyTransaction(w.chainConfig, w.chain, &env.coinbase, env.gasPool, env.state, env.header, tx, &env.header.GasUsed, *w.chain.GetVMConfig()) if err != nil { log.Error("Transaction application failed", "tx_hash", tx.Hash(), "error", err) @@ -1011,13 +1011,6 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) { func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment) error { pending := w.eth.TxPool().Pending(true) log.Info("Pending transactions retrieved in fillTransactions", "count", len(pending)) - for _, batch := range pending { - for _, tx := range batch { - if tx != nil { - log.Info("filltransactions pulling out of mempool", "tx_hash", tx.Hash.String()) - } - } - } // Split the pending transactions into locals and remotes. localTxs, remoteTxs := make(map[common.Address][]*txpool.LazyTransaction), pending for _, account := range w.eth.TxPool().Locals() {