Skip to content

Commit

Permalink
merge bitcoin#20653: Move addr relay comment in net to correct place
Browse files Browse the repository at this point in the history
comment was moved to net.h in 678df63 (dashpay#4888) and removed entirely in
796353a (dashpay#5771). the comment is being restored back to where it is
upstream, in CNode::RelayAddrsWithConn.
  • Loading branch information
kwvg committed Apr 3, 2024
1 parent 017d1b4 commit d0c596e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ class CNode
/* 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;
}

Expand Down

0 comments on commit d0c596e

Please sign in to comment.