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

Method FindNode

src/net.cpp:364–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364CNode* CConnman::FindNode(const CNetAddr& ip)
365{
366 LOCK(m_nodes_mutex);
367 for (CNode* pnode : m_nodes) {
368 if (static_cast<CNetAddr>(pnode->addr) == ip) {
369 return pnode;
370 }
371 }
372 return nullptr;
373}
374
375CNode* CConnman::FindNode(const CSubNet& subNet)
376{

Callers

nothing calls this directly

Calls 1

MatchMethod · 0.45

Tested by

no test coverage detected