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

Method GetNodeStats

src/net.cpp:2879–2889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2877}
2878
2879void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats) const
2880{
2881 vstats.clear();
2882 LOCK(m_nodes_mutex);
2883 vstats.reserve(m_nodes.size());
2884 for (CNode* pnode : m_nodes) {
2885 vstats.emplace_back();
2886 pnode->CopyStats(vstats.back());
2887 vstats.back().m_mapped_as = pnode->addr.GetMappedAS(addrman.GetAsmap());
2888 }
2889}
2890
2891bool CConnman::DisconnectNode(const std::string& strNode)
2892{

Callers 3

FUZZ_TARGET_INITFunction · 0.80
getpeerinfoFunction · 0.80
getNodesStatsMethod · 0.80

Calls 6

emplace_backMethod · 0.80
CopyStatsMethod · 0.80
GetMappedASMethod · 0.80
clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64