From c89452c0e1c6e8fb8e507ce40a5601a8d1cbccb8 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Tue, 4 Oct 2016 12:02:52 +0200 Subject: [PATCH] miner: use proper state.Commit function --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index f5627c9316..417a8dfc2d 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -276,7 +276,7 @@ func (self *worker) wait() { } go self.mux.Post(core.NewMinedBlockEvent{Block: block}) } else { - work.state.Commit() + state.Commit(work.state) parent := self.chain.GetBlock(block.ParentHash(), block.NumberU64()-1) if parent == nil { glog.V(logger.Error).Infoln("Invalid block found during mining")