From 6d14c5458b097a1eafad41b2ad28d22628c459aa Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sat, 8 Oct 2016 02:00:06 +0200 Subject: [PATCH] Use global state cache when mining (#2529) --- ethcore/src/client/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 8835af184..15a93838d 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -1052,7 +1052,7 @@ impl MiningBlockChainClient for Client { &self.vm_factory, self.trie_factory.clone(), false, // TODO: this will need to be parameterised once we want to do immediate mining insertion. - self.state_db.lock().boxed_clone(), + self.state_db.lock().boxed_clone_canon(&h), &self.chain.block_header(&h).expect("h is best block hash: so its header must exist: qed"), self.build_last_hashes(h.clone()), author,