diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-09-27 18:13:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-09-28 16:27:31 +0800 |
commit | 710435b51b97b4c688b70bda35ab9d1aa704a988 (patch) | |
tree | 154eb1fc771c9d809dc537a5ae45418263ad0770 /miner | |
parent | cd791bd855b55b95afc8a5c8f56b8bf67863d099 (diff) | |
download | dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.gz dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.bz2 dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.lz dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.xz dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.zst dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.zip |
core, eth, trie: reuse trie journals in all our code
Diffstat (limited to 'miner')
-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 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 } |