@@ -684,7 +684,7 @@ void CNode::copyStats(CNodeStats &stats)
684684 X (cleanSubVer);
685685 }
686686 X (fInbound );
687- X (fAddnode );
687+ X (m_manual_connection );
688688 X (nStartingHeight);
689689 {
690690 LOCK (cs_vSend);
@@ -1756,7 +1756,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
17561756 {
17571757 LOCK (cs_vNodes);
17581758 for (CNode* pnode : vNodes) {
1759- if (!pnode->fInbound && !pnode->fAddnode ) {
1759+ if (!pnode->fInbound && !pnode->m_manual_connection ) {
17601760 // Netgroups for inbound and addnode peers are not excluded because our goal here
17611761 // is to not use multiple of our limited outbound slots on a single netgroup
17621762 // but inbound and addnode peers do not use our outbound slots. Inbound peers
@@ -1927,7 +1927,7 @@ void CConnman::ThreadOpenAddedConnections()
19271927}
19281928
19291929// if successful, this moves the passed grant to the constructed node
1930- bool CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot , bool fFeeler , bool fAddnode )
1930+ bool CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot , bool fFeeler , bool manual_connection )
19311931{
19321932 //
19331933 // Initiate outbound network connection
@@ -1956,8 +1956,8 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
19561956 pnode->fOneShot = true ;
19571957 if (fFeeler )
19581958 pnode->fFeeler = true ;
1959- if (fAddnode )
1960- pnode->fAddnode = true ;
1959+ if (manual_connection )
1960+ pnode->m_manual_connection = true ;
19611961
19621962 m_msgproc->InitializeNode (pnode);
19631963 {
@@ -2705,7 +2705,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
27052705 strSubVer = " " ;
27062706 fWhitelisted = false ;
27072707 fOneShot = false ;
2708- fAddnode = false ;
2708+ m_manual_connection = false ;
27092709 fClient = false ; // set by version message
27102710 fFeeler = false ;
27112711 fSuccessfullyConnected = false ;
0 commit comments