mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
doc: Move add relay comment in net to correct place
Can be reviewed with --ignore-all-space --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
This commit is contained in:
parent
b103fdcb3b
commit
fa86217e97
2 changed files with 12 additions and 12 deletions
21
src/net.cpp
21
src/net.cpp
|
@ -2963,18 +2963,15 @@ unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; }
|
||||||
|
|
||||||
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress& addrBindIn, const std::string& addrNameIn, ConnectionType conn_type_in, bool inbound_onion)
|
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress& addrBindIn, const std::string& addrNameIn, ConnectionType conn_type_in, bool inbound_onion)
|
||||||
: nTimeConnected(GetSystemTimeInSeconds()),
|
: nTimeConnected(GetSystemTimeInSeconds()),
|
||||||
addr(addrIn),
|
addr(addrIn),
|
||||||
addrBind(addrBindIn),
|
addrBind(addrBindIn),
|
||||||
nKeyedNetGroup(nKeyedNetGroupIn),
|
nKeyedNetGroup(nKeyedNetGroupIn),
|
||||||
// Don't relay addr messages to peers that we connect to as block-relay-only
|
id(idIn),
|
||||||
// peers (to prevent adversaries from inferring these links from addr
|
nLocalHostNonce(nLocalHostNonceIn),
|
||||||
// traffic).
|
m_conn_type(conn_type_in),
|
||||||
id(idIn),
|
nLocalServices(nLocalServicesIn),
|
||||||
nLocalHostNonce(nLocalHostNonceIn),
|
nMyStartingHeight(nMyStartingHeightIn),
|
||||||
m_conn_type(conn_type_in),
|
m_inbound_onion(inbound_onion)
|
||||||
nLocalServices(nLocalServicesIn),
|
|
||||||
nMyStartingHeight(nMyStartingHeightIn),
|
|
||||||
m_inbound_onion(inbound_onion)
|
|
||||||
{
|
{
|
||||||
hSocket = hSocketIn;
|
hSocket = hSocketIn;
|
||||||
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn;
|
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn;
|
||||||
|
|
|
@ -964,6 +964,9 @@ public:
|
||||||
/* Whether we send addr messages over this connection */
|
/* Whether we send addr messages over this connection */
|
||||||
bool RelayAddrsWithConn() const
|
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;
|
return m_conn_type != ConnectionType::BLOCK_RELAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue