diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-01 18:07:14 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-04 08:51:36 +0800 |
commit | ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a (patch) | |
tree | b6d294b8fbe8ba7f34a9f78f676ca99758a58bf5 /miner/worker.go | |
parent | 08caeedd842526373d30a929e63101a5fe7fda55 (diff) | |
download | go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.gz go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.bz2 go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.lz go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.xz go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.zst go-tangerine-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.zip |
core, miner, tests: renamed state methods
* Update => SyncIntermediate
* Added SyncObjects
SyncIntermediate only updates whatever has changed, but, as a side
effect, requires much more disk space.
SyncObjects will only sync whatever is required for a block and will not
save intermediate state to disk. As drawback this requires more time
when more txs come in.
Diffstat (limited to 'miner/worker.go')
-rw-r--r-- | miner/worker.go | 2 |
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() } |