@ -684,7 +684,7 @@ void CNode::copyStats(CNodeStats &stats)
@@ -684,7 +684,7 @@ void CNode::copyStats(CNodeStats &stats)
X ( cleanSubVer ) ;
}
X ( fInbound ) ;
X ( fAddnode ) ;
X ( m_manual_connection ) ;
X ( nStartingHeight ) ;
{
LOCK ( cs_vSend ) ;
@ -1756,7 +1756,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
@@ -1756,7 +1756,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
{
LOCK ( cs_vNodes ) ;
for ( CNode * pnode : vNodes ) {
if ( ! pnode - > fInbound & & ! pnode - > fAddnode ) {
if ( ! pnode - > fInbound & & ! pnode - > m_manual_connection ) {
// Netgroups for inbound and addnode peers are not excluded because our goal here
// is to not use multiple of our limited outbound slots on a single netgroup
// but inbound and addnode peers do not use our outbound slots. Inbound peers
@ -1927,7 +1927,7 @@ void CConnman::ThreadOpenAddedConnections()
@@ -1927,7 +1927,7 @@ void CConnman::ThreadOpenAddedConnections()
}
// if successful, this moves the passed grant to the constructed node
bool CConnman : : OpenNetworkConnection ( const CAddress & addrConnect , bool fCountFailure , CSemaphoreGrant * grantOutbound , const char * pszDest , bool fOneShot , bool fFeeler , bool fAddnode )
bool CConnman : : OpenNetworkConnection ( const CAddress & addrConnect , bool fCountFailure , CSemaphoreGrant * grantOutbound , const char * pszDest , bool fOneShot , bool fFeeler , bool manual_connection )
{
//
// Initiate outbound network connection
@ -1956,8 +1956,8 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
@@ -1956,8 +1956,8 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
pnode - > fOneShot = true ;
if ( fFeeler )
pnode - > fFeeler = true ;
if ( fAddnode )
pnode - > fAddnode = true ;
if ( manual_connection )
pnode - > m_manual_connection = true ;
m_msgproc - > InitializeNode ( pnode ) ;
{
@ -2705,7 +2705,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
@@ -2705,7 +2705,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
strSubVer = " " ;
fWhitelisted = false ;
fOneShot = false ;
fAddnode = false ;
m_manual_connection = false ;
fClient = false ; // set by version message
fFeeler = false ;
fSuccessfullyConnected = false ;