From c39e3001e6f09f37205a804dc368973ab3bff574 Mon Sep 17 00:00:00 2001 From: Roshan Date: Mon, 22 Apr 2024 17:42:32 +0800 Subject: [PATCH] debug: add more logs --- miner/worker.go | 1 + miner/worker_builder.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 1f2607a799..6b0f9cb0b4 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -911,6 +911,7 @@ LOOP: env.state.SetTxContext(tx.Hash(), env.tcount) logs, err := w.commitTransaction(env, tx, bloomProcessors) + log.Info("commit tx result", "hash", tx.Hash(), "err", err) switch { case errors.Is(err, core.ErrNonceTooLow): // New head notification data race between the transaction pool and miner, shift diff --git a/miner/worker_builder.go b/miner/worker_builder.go index 54eb9f20bc..95d06c140b 100644 --- a/miner/worker_builder.go +++ b/miner/worker_builder.go @@ -46,7 +46,7 @@ func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environ return errors.New("no bundles in bundle pool") } - log.Info("fill bundles and transactions", "bundles_count", len(bundles)) + log.Info("fill bundles", "bundles_count", len(bundles)) txs, bundle, err := w.generateOrderedBundles(env, bundles) if err != nil { @@ -125,6 +125,7 @@ func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environ return err } } + log.Info("fill transactions and bundles done", "total_txs_count", len(env.txs)) return nil }