From 89cca5093dc87daff699e4f82d4be0cb8f12165e Mon Sep 17 00:00:00 2001 From: "amalraj.manigmail.com" Date: Mon, 8 Oct 2018 18:45:56 +0800 Subject: [PATCH] miner/worker: use worker.current.state instead of task.state to keep it consistent with references to state in other parts of code --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 5573569f1..626f7a0bb 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -606,7 +606,7 @@ func (w *worker) resultLoop() { // Commit block and state to database. - stat, err := w.chain.WriteBlockWithState(block, allReceipts, task.state, nil) + stat, err := w.chain.WriteBlockWithState(block, allReceipts, work.state, nil) if err != nil { log.Error("Failed writWriteBlockAndStating block to chain", "err", err) continue