From 430f489027f15c1e4948ea4378954df24e3fee88 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Fri, 5 Apr 2019 13:35:15 -0400 Subject: Don't relay addr messages to block-relay-only peers We don't want relay of addr messages to leak information about these network links. --- src/net.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 20b7932037..605d7a8252 100644 --- a/src/net.h +++ b/src/net.h @@ -712,6 +712,9 @@ public: int64_t nNextAddrSend GUARDED_BY(cs_sendProcessing){0}; int64_t nNextLocalAddrSend GUARDED_BY(cs_sendProcessing){0}; + const bool m_addr_relay_peer; + bool IsAddrRelayPeer() const { return m_addr_relay_peer; } + // List of block ids we still have announce. // There is no final sorting before sending, as they are always sent immediately // and in the order requested. @@ -748,6 +751,7 @@ public: // m_tx_relay == nullptr if we're not relaying transactions with this peer std::unique_ptr m_tx_relay; + // Used for headers announcements - unfiltered blocks to relay std::vector vBlockHashesToAnnounce GUARDED_BY(cs_inventory); -- cgit v1.2.3