@@ -1777,7 +1777,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
1777
1777
for (const std::string& strAddr : connect)
1778
1778
{
1779
1779
CAddress addr (CService (), NODE_NONE);
1780
- OpenNetworkConnection (addr, false , nullptr , strAddr.c_str (), false , false , ConnectionType::MANUAL);
1780
+ OpenNetworkConnection (addr, false , nullptr , strAddr.c_str (), false , ConnectionType::MANUAL);
1781
1781
for (int i = 0 ; i < 10 && i < nLoop; i++)
1782
1782
{
1783
1783
if (!interruptNet.sleep_for (std::chrono::milliseconds (500 )))
@@ -1943,7 +1943,8 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
1943
1943
// well for sanity.)
1944
1944
bool block_relay_only = nOutboundBlockRelay < m_max_outbound_block_relay && !fFeeler && nOutboundFullRelay >= m_max_outbound_full_relay;
1945
1945
1946
- OpenNetworkConnection (addrConnect, (int )setConnected.size () >= std::min (nMaxConnections - 1 , 2 ), &grant, nullptr , false , fFeeler , ConnectionType::OUTBOUND, block_relay_only);
1946
+ ConnectionType conn_type = (fFeeler ? ConnectionType::FEELER : ConnectionType::OUTBOUND);
1947
+ OpenNetworkConnection (addrConnect, (int )setConnected.size () >= std::min (nMaxConnections - 1 , 2 ), &grant, nullptr , false , conn_type, block_relay_only);
1947
1948
}
1948
1949
}
1949
1950
}
@@ -2018,7 +2019,7 @@ void CConnman::ThreadOpenAddedConnections()
2018
2019
}
2019
2020
tried = true ;
2020
2021
CAddress addr (CService (), NODE_NONE);
2021
- OpenNetworkConnection (addr, false , &grant, info.strAddedNode .c_str (), false , false , ConnectionType::MANUAL);
2022
+ OpenNetworkConnection (addr, false , &grant, info.strAddedNode .c_str (), false , ConnectionType::MANUAL);
2022
2023
if (!interruptNet.sleep_for (std::chrono::milliseconds (500 )))
2023
2024
return ;
2024
2025
}
@@ -2030,7 +2031,7 @@ void CConnman::ThreadOpenAddedConnections()
2030
2031
}
2031
2032
2032
2033
// if successful, this moves the passed grant to the constructed node
2033
- void CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool m_addr_fetch, bool fFeeler , ConnectionType conn_type, bool block_relay_only)
2034
+ void CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool m_addr_fetch, ConnectionType conn_type, bool block_relay_only)
2034
2035
{
2035
2036
assert (conn_type != ConnectionType::INBOUND);
2036
2037
@@ -2059,8 +2060,6 @@ void CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
2059
2060
grantOutbound->MoveTo (pnode->grantOutbound );
2060
2061
if (m_addr_fetch)
2061
2062
pnode->m_addr_fetch = true ;
2062
- if (fFeeler )
2063
- pnode->fFeeler = true ;
2064
2063
2065
2064
m_msgproc->InitializeNode (pnode);
2066
2065
{
@@ -2738,6 +2737,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
2738
2737
: nTimeConnected(GetSystemTimeInSeconds()),
2739
2738
addr(addrIn),
2740
2739
addrBind(addrBindIn),
2740
+ fFeeler(conn_type_in == ConnectionType::FEELER),
2741
2741
m_manual_connection(conn_type_in == ConnectionType::MANUAL),
2742
2742
fInbound(conn_type_in == ConnectionType::INBOUND),
2743
2743
nKeyedNetGroup(nKeyedNetGroupIn),
0 commit comments