tx pool lookup for kernel short ids (compact block hydration) (#710)

* wip - basic tx pool lookup for kernel short ids (compact block hydration)

* use the nonce in the compact_block to correctly generate short_ids for lookup

* query the tx pool based on kernel short_ids

* tests passing

* cleanup some logging

* cleanup logging
This commit is contained in:
Antioch Peverell
2018-02-16 10:42:27 -05:00
committed by GitHub
parent b82fa0ea1d
commit 5572fa075e
7 changed files with 155 additions and 68 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ impl Chain {
let header_head = self.get_header_head().unwrap();
if header_head.height - head.height < global::cut_through_horizon() as u64 {
return Err(Error::InvalidSumtree("not needed".to_owned()));
}
}
let header = self.store.get_block_header(&h)?;
sumtree::zip_write(self.db_root.clone(), sumtree_data)?;