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 -2
View File
@@ -153,7 +153,7 @@ impl Server {
Ok(added)
}
Err(e) => {
debug!(LOGGER, "Couldn not connect to {}: {:?}", addr, e);
debug!(LOGGER, "Could not connect to {}: {:?}", addr, e);
Err(Error::Connection(e))
}
}
@@ -235,4 +235,3 @@ impl NetAdapter for DummyAdapter {
fn peer_addrs_received(&self, _: Vec<SocketAddr>) {}
fn peer_difficulty(&self, _: SocketAddr, _: Difficulty, _:u64) {}
}