From 710435b51b97b4c688b70bda35ab9d1aa704a988 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= <peterke@gmail.com>
Date: Tue, 27 Sep 2016 13:13:13 +0300
Subject: core, eth, trie: reuse trie journals in all our code

---
 miner/worker.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'miner')

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
 	}
-- 
cgit v1.2.3