Invoke a callback on the node with the given id, if it is fully connected.
Declared in <net.h>
[[requires_capability(0x7f2e2b748848), requires_capability(0x7f2e28941558), requires_capability(0x7f2e234d0738), requires_capability(0x7f2e2737ced8), requires_capability(0x7f2e235ee568), requires_capability(0x7f2e2a34a658), requires_capability(0x7f2e219f7428), requires_capability(0x7f2e21c822e8), requires_capability(0x7f2e1aa34e48), requires_capability(0x7f2e376b6f28), requires_capability(0x7f2e433ccab8)]]
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. |