MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / IsOutboundDisconnectionCandidate

Function IsOutboundDisconnectionCandidate

src/net_processing.cpp:606–609  ·  view source on GitHub ↗

Returns true for outbound peers, excluding manual connections, feelers, and one-shots

Source from the content-addressed store, hash-verified

604// Returns true for outbound peers, excluding manual connections, feelers, and
605// one-shots
606static bool IsOutboundDisconnectionCandidate(const CNode *node)
607{
608 return !(node->fInbound || node->m_manual_connection || node->fFeeler || node->fOneShot);
609}
610
611void PeerLogicValidation::InitializeNode(CNode *pnode) {
612 CAddress addr = pnode->addr;

Callers 3

ProcessHeadersMessageFunction · 0.85
ConsiderEvictionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected