Track blocks we requested, always broadcast otherwise (#2349)
This commit is contained in:
+3
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user