Invoke a callback on the node with the given id, if it is fully connected.
Declared in <net.h>
[[requires_capability(0x7f950f5fe248), requires_capability(0x7f950ed86a78), requires_capability(0x7f950b48ece8), requires_capability(0x7f95034d1908), requires_capability(0x7f950e20ecd8), requires_capability(0x7f9527746978), requires_capability(0x7f950c323b08), requires_capability(0x7f950c23f738), requires_capability(0x7f95018b8ee8), requires_capability(0x7f950bd90d98), requires_capability(0x7f95065c8498)]]
bool
ForNode(
NodeId id,
std::function<bool(CNode*)> func);
false if no fully connected node with that id exists, otherwise the callback's result.
| Name | Description |
|---|---|
| id | the id of the node to look up. |
| func | the callback to invoke; its return value is forwarded. |