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

Method RemoveAddedNode

src/net.cpp:2517–2527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2515}
2516
2517bool CConnman::RemoveAddedNode(const std::string& strNode)
2518{
2519 LOCK(cs_vAddedNodes);
2520 for(std::vector<std::string>::iterator it = vAddedNodes.begin(); it != vAddedNodes.end(); ++it) {
2521 if (strNode == *it) {
2522 vAddedNodes.erase(it);
2523 return true;
2524 }
2525 }
2526 return false;
2527}
2528
2529size_t CConnman::GetNodeCount(NumConnections flags)
2530{

Callers 1

addnodeFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected