Use global state cache when mining (#2529)
This commit is contained in:
		
							parent
							
								
									9239a7cd9e
								
							
						
					
					
						commit
						6d14c5458b
					
				@ -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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user