aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:42:13 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:42:13 +0800
commit9c3db1be1dd24c366a58a7ced22adfa0b0839efe (patch)
tree0c102cd7f590a80bc291b82274e7ca16335a250f /miner/worker.go
parent9bb575be7db85f967771018a915fbc4e80345ee2 (diff)
parent47460b3b4af51e08518c781680897cf2986415cc (diff)
downloaddexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.gz
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.bz2
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.lz
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.xz
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.zst
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.zip
Merge pull request #1369 from obscuren/statedb-update-cleanup
core, core/state: throw out intermediate state
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index dd004da6e..1615ff84b 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -453,7 +453,7 @@ func (self *worker) commitNewWork() {
if atomic.LoadInt32(&self.mining) == 1 {
// commit state root after all state transitions.
core.AccumulateRewards(self.current.state, header, uncles)
- current.state.Update()
+ current.state.SyncObjects()
self.current.state.Sync()
header.Root = current.state.Root()
}