Use global state cache when mining (#2529)

This commit is contained in:
Arkadiy Paronyan 2016-10-08 02:00:06 +02:00 committed by GitHub
parent 9239a7cd9e
commit 6d14c5458b
1 changed files with 1 additions and 1 deletions

View File

@ -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,