MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetCurrentBlockRelayOnlyConns

Method GetCurrentBlockRelayOnlyConns

src/net.cpp:2189–2200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2187}
2188
2189std::vector<CAddress> CConnman::GetCurrentBlockRelayOnlyConns() const
2190{
2191 std::vector<CAddress> ret;
2192 LOCK(m_nodes_mutex);
2193 for (const CNode* pnode : m_nodes) {
2194 if (pnode->IsBlockOnlyConn()) {
2195 ret.push_back(pnode->addr);
2196 }
2197 }
2198
2199 return ret;
2200}
2201
2202std::vector<AddedNodeInfo> CConnman::GetAddedNodeInfo() const
2203{

Callers

nothing calls this directly

Calls 2

IsBlockOnlyConnMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected