merge bitcoin#20653: Move addr relay comment in net to correct place

comment was moved to net.h in 678df631 (#4888) and removed entirely in
796353ad (#5771). the comment is being restored back to where it is
upstream, in CNode::RelayAddrsWithConn.
This commit is contained in:
Kittywhiskers Van Gogh 2020-12-14 18:25:20 +01:00
parent 017d1b40e3
commit d0c596e91d
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -568,6 +568,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;
}