Add doumentation, make tracing optional and expose at OpenBlock level.

This commit is contained in:
Gav Wood
2016-03-19 12:54:34 +01:00
parent d6f94c4ad7
commit 1bfcbca8af
9 changed files with 169 additions and 99 deletions

View File

@@ -398,6 +398,7 @@ impl<V> BlockChainClient for Client<V> where V: Verifier {
let mut b = OpenBlock::new(
engine,
false, // TODO: this will need to be parameterised once we want to do immediate mining insertion.
self.state_db.lock().unwrap().spawn(),
match self.chain.block_header(&h) { Some(ref x) => x, None => {return None} },
self.build_last_hashes(h.clone()),