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

Method AddNode

src/net.cpp:2840–2849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2838}
2839
2840bool CConnman::AddNode(const std::string& strNode)
2841{
2842 LOCK(m_added_nodes_mutex);
2843 for (const std::string& it : m_added_nodes) {
2844 if (strNode == it) return false;
2845 }
2846
2847 m_added_nodes.push_back(strNode);
2848 return true;
2849}
2850
2851bool CConnman::RemoveAddedNode(const std::string& strNode)
2852{

Callers 2

FUZZ_TARGET_INITFunction · 0.80
addnodeFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64