From af59feb05235ecb85ec9d75b09c66e71268c9889 Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Tue, 12 May 2020 14:48:24 -0700 Subject: [net/refactor] Extract m_addr_known logic from initializer list --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index e18128dc1..fd1cb3e64 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2748,7 +2748,6 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn // 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). - m_addr_known{conn_type_in == ConnectionType::BLOCK_RELAY ? nullptr : MakeUnique(5000, 0.001)}, id(idIn), nLocalHostNonce(nLocalHostNonceIn), nLocalServices(nLocalServicesIn), @@ -2759,6 +2758,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn hashContinue = uint256(); if (conn_type_in != ConnectionType::BLOCK_RELAY) { m_tx_relay = MakeUnique(); + m_addr_known = MakeUnique(5000, 0.001); } for (const std::string &msg : getAllNetMessageTypes()) -- cgit v1.2.3