Track blocks we requested, always broadcast otherwise (#2349)
This commit is contained in:
+1
-1
@@ -355,7 +355,7 @@ pub trait ChainAdapter: Sync + Send {
|
||||
/// block could be handled properly and is not deemed defective by the
|
||||
/// chain. Returning false means the block will never be valid and
|
||||
/// may result in the peer being banned.
|
||||
fn block_received(&self, b: core::Block, addr: SocketAddr) -> bool;
|
||||
fn block_received(&self, b: core::Block, addr: SocketAddr, was_requested: bool) -> bool;
|
||||
|
||||
fn compact_block_received(&self, cb: core::CompactBlock, addr: SocketAddr) -> bool;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user