From 8f886073411ae8661c657d15aa52b9dd52577bc5 Mon Sep 17 00:00:00 2001 From: j75689 Date: Fri, 8 Jul 2022 09:24:45 +0800 Subject: [PATCH] fix: nil pointer issue when stopping mining new block --- 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: }