MCPcopy Create free account
hub / github.com/ElementsProject/lightning / connect_any_cmd_id

Function connect_any_cmd_id

lightningd/connect_control.c:331–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331const char *connect_any_cmd_id(const tal_t *ctx,
332 struct lightningd *ld, const struct peer *peer)
333{
334 struct connect *c = find_connect(ld, &peer->id);
335 if (c)
336 return tal_strdup(ctx, c->cmd->id);
337 return NULL;
338}
339
340void connect_succeeded(struct lightningd *ld, const struct peer *peer,
341 bool incoming,

Callers 1

handle_peer_connectedFunction · 0.70

Calls 1

find_connectFunction · 0.85

Tested by

no test coverage detected