Leverage sync state to accept txhashset (#1251)

Fixes #1246
This commit is contained in:
Ignotus Peverell
2018-07-12 17:06:52 +01:00
committed by GitHub
parent bacadfb5ab
commit bdfd5405c0
6 changed files with 26 additions and 2 deletions
+3
View File
@@ -233,6 +233,9 @@ impl MessageHandler for Protocol {
sm_arch.hash,
sm_arch.height,
);
if !self.adapter.txhashset_receive_ready() {
return Err(Error::BadMessage);
}
let mut tmp = env::temp_dir();
tmp.push("txhashset.zip");