Backports to master (#2530)

* Transaction queue limited by gas (#2528)

* Use global state cache when mining (#2529)
This commit is contained in:
Arkadiy Paronyan
2016-10-08 10:35:54 +02:00
committed by GitHub
parent 72ec9366ad
commit f200eb2cfe
4 changed files with 69 additions and 20 deletions

View File

@@ -1095,7 +1095,7 @@ impl MiningBlockChainClient for Client {
engine,
self.factories.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),
&chain.block_header(&h).expect("h is best block hash: so its header must exist: qed"),
self.build_last_hashes(h.clone()),
author,