Return the number of outbound connections that are full relay (not blocks only)
| 2478 | |
| 2479 | // Return the number of outbound connections that are full relay (not blocks only) |
| 2480 | int CConnman::GetFullOutboundConnCount() const |
| 2481 | { |
| 2482 | AssertLockNotHeld(m_nodes_mutex); |
| 2483 | |
| 2484 | int nRelevant = 0; |
| 2485 | { |
| 2486 | LOCK(m_nodes_mutex); |
| 2487 | for (const CNode* pnode : m_nodes) { |
| 2488 | if (pnode->fSuccessfullyConnected && pnode->IsFullOutboundConn()) ++nRelevant; |
| 2489 | } |
| 2490 | } |
| 2491 | return nRelevant; |
| 2492 | } |
| 2493 | |
| 2494 | // Return the number of peers we have over our outbound connection limit |
| 2495 | // Exclude peers that are marked for disconnect, or are going to be |
nothing calls this directly
no test coverage detected