Track blocks we requested, always broadcast otherwise (#2349)

This commit is contained in:
Ignotus Peverell
2019-01-12 09:28:03 -08:00
committed by GitHub
parent cf8f9d609a
commit f9a20aef0d
6 changed files with 69 additions and 46 deletions
+3 -1
View File
@@ -154,7 +154,9 @@ impl MessageHandler for Protocol {
);
let b: core::Block = msg.body()?;
adapter.block_received(b, self.addr);
// we can't know at this level whether we requested the block or not,
// the boolean should be properly set in higher level adapter
adapter.block_received(b, self.addr, false);
Ok(None)
}