mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge bitcoin/bitcoin#21186: net/net processing: Move addr data into net_processing
0829516d1f[refactor] Remove unused ForEachNodeThen() template (John Newbery)09cc66c00escripted-diff: rename address relay fields (John Newbery)76568a3351[net processing] Move addr relay data and logic into net processing (John Newbery)caba7ae8a5[net processing] Make RelayAddress() a member function of PeerManagerImpl (John Newbery)86acc96469[net processing] Take NodeId instead of CNode* as originator for RelayAddress() (John Newbery) Pull request description: This continues the work of moving application layer data into net_processing, by moving all addr data into the new Peer object added in #19607. For motivation, see #19398. ACKs for top commit: laanwj: Code review ACK0829516d1fmzumsande: ACK0829516d1f, reviewed the code and ran tests. sipa: utACK0829516d1fhebasto: re-ACK0829516d1fTree-SHA512: efe0410fac288637f203eb37d1999910791e345872d37e1bd5cde50e25bb3cb1c369ab86b3a166ffd5e06ee72e4508aa2c46d658be6a54e20b4f220d2f57d0a6
This commit is contained in:
@@ -2929,10 +2929,6 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, SOCKET hSocketIn, const
|
||||
m_tx_relay = std::make_unique<TxRelay>();
|
||||
}
|
||||
|
||||
if (RelayAddrsWithConn()) {
|
||||
m_addr_known = std::make_unique<CRollingBloomFilter>(5000, 0.001);
|
||||
}
|
||||
|
||||
for (const std::string &msg : getAllNetMessageTypes())
|
||||
mapRecvBytesPerMsgCmd[msg] = 0;
|
||||
mapRecvBytesPerMsgCmd[NET_MESSAGE_COMMAND_OTHER] = 0;
|
||||
|
||||
Reference in New Issue
Block a user