mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#20653: Move addr relay comment in net to correct place
comment was moved to net.h in678df631
(#4888) and removed entirely in796353ad
(#5771). the comment is being restored back to where it is upstream, in CNode::RelayAddrsWithConn.
This commit is contained in:
parent
017d1b40e3
commit
d0c596e91d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user