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