aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-28 17:53:54 +0800
committerGitHub <noreply@github.com>2016-09-28 17:53:54 +0800
commit437c3863f1917762e7f7474bd8b5c7ad78714d9c (patch)
tree154eb1fc771c9d809dc537a5ae45418263ad0770 /miner
parent863d166c7b0250cf2e99c8aad69578cdd144d386 (diff)
parent710435b51b97b4c688b70bda35ab9d1aa704a988 (diff)
downloaddexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.gz
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.bz2
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.lz
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.xz
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.zst
dexon-437c3863f1917762e7f7474bd8b5c7ad78714d9c.zip
Merge pull request #3053 from karalabe/fjl-state-trie-journal
core, trie: replace state caches with trie journal
Diffstat (limited to 'miner')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 1676036d8..ac1ef5ba3 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -361,7 +361,7 @@ func (self *worker) push(work *Work) {
// makeCurrent creates a new environment for the current cycle.
func (self *worker) makeCurrent(parent *types.Block, header *types.Header) error {
- state, err := state.New(parent.Root(), self.eth.ChainDb())
+ state, err := self.chain.StateAt(parent.Root())
if err != nil {
return err
}