aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-15 17:56:08 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-15 17:56:11 +0100
commita35a3466efd187a2e443aaa230472c8c22f5cfc3 (patch)
tree7a2cc11db714e45601aad61bc1a480cb239a04e4 /src/net.h
parentec6149c01e6dc5db26f81f47097537292ca79f35 (diff)
parentfa86217e97234aac6f815a6768afc1b87b8b2ae8 (diff)
downloadbitcoin-a35a3466efd187a2e443aaa230472c8c22f5cfc3.tar.xz
Merge #20653: doc: Move addr relay comment in net to correct place
fa86217e97234aac6f815a6768afc1b87b8b2ae8 doc: Move add relay comment in net to correct place (MarcoFalke) Pull request description: The comment was previously attached to `m_addr_known`, but now it is attached to `id`, which is wrong. Fix that by moving the comment to `RelayAddrsWithConn`. ACKs for top commit: practicalswift: cr ACK fa86217e97234aac6f815a6768afc1b87b8b2ae8: patch looks correct jnewbery: ACK fa86217e97 theStack: Code review ACK fa86217e97234aac6f815a6768afc1b87b8b2ae8 🌳 Tree-SHA512: ec3d5f1996aded38947d2a5fd0bb63539e88f83964cd3254984002edfd51abb4dde813c7c81619a8a3a5c55b7e9ae83c8c5be8ad6c84b4593ed3bbf463fe8979
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 51cf6f4579..20e356562b 100644
--- a/src/net.h
+++ b/src/net.h
@@ -954,6 +954,9 @@ public:
/* Whether we send addr messages over this connection */
bool RelayAddrsWithConn() const
{
+ // Don't relay addr messages to peers that we connect to as block-relay-only
+ // peers (to prevent adversaries from inferring these links from addr
+ // traffic).
return m_conn_type != ConnectionType::BLOCK_RELAY;
}