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

Method ForEachNode

src/net.h:851–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849
850 using NodeFn = std::function<void(CNode*)>;
851 void ForEachNode(const NodeFn& func)
852 {
853 LOCK(m_nodes_mutex);
854 for (auto&& node : m_nodes) {
855 if (NodeFullyConnected(node))
856 func(node);
857 }
858 };
859
860 void ForEachNode(const NodeFn& func) const
861 {

Callers 4

NewPoWValidBlockMethod · 0.80
_RelayTransactionMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.64