Expose tracing all the way to BlockChain; now it's up to blockchain to integrate.

This commit is contained in:
Gav Wood
2016-03-19 13:37:47 +01:00
parent 203438fb42
commit 66837452c2
4 changed files with 18 additions and 12 deletions

View File

@@ -211,7 +211,7 @@ impl<V> Client<V> where V: Verifier {
let last_hashes = self.build_last_hashes(header.parent_hash.clone());
let db = self.state_db.lock().unwrap().spawn();
let enact_result = enact_verified(&block, engine, db, &parent, last_hashes);
let enact_result = enact_verified(&block, engine, self.chain.have_tracing(), db, &parent, last_hashes);
if let Err(e) = enact_result {
warn!(target: "client", "Block import failed for #{} ({})\nError: {:?}", header.number(), header.hash(), e);
return Err(());