From fd1d1e356ed33399a47984e107e8d4839add056b Mon Sep 17 00:00:00 2001 From: dylanhuang Date: Fri, 8 Jul 2022 13:17:40 +0800 Subject: [PATCH] fix: nil pointer issue when stopping mining new block (#983) --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 274fd5fd32..8d6c5f1a49 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -919,7 +919,7 @@ LOOP: if stopTimer != nil { select { case <-stopTimer.C: - log.Info("Not enough time for further transactions", "txs", len(w.current.txs)) + log.Info("Not enough time for further transactions", "txs", len(env.txs)) break LOOP default: }