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

Method RemoveAddedNode

src/net.cpp:2851–2861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2849}
2850
2851bool CConnman::RemoveAddedNode(const std::string& strNode)
2852{
2853 LOCK(m_added_nodes_mutex);
2854 for(std::vector<std::string>::iterator it = m_added_nodes.begin(); it != m_added_nodes.end(); ++it) {
2855 if (strNode == *it) {
2856 m_added_nodes.erase(it);
2857 return true;
2858 }
2859 }
2860 return false;
2861}
2862
2863size_t CConnman::GetNodeCount(ConnectionDirection flags) const
2864{

Callers 2

FUZZ_TARGET_INITFunction · 0.80
addnodeFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64