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

Function new_connect

lightningd/connect_control.c:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static struct connect *new_connect(struct lightningd *ld,
30 const struct node_id *id,
31 struct command *cmd)
32{
33 struct connect *c = tal(cmd, struct connect);
34 c->id = *id;
35 c->cmd = cmd;
36 list_add_tail(&ld->connects, &c->list);
37 tal_add_destructor(c, destroy_connect);
38 return c;
39}
40
41/* Finds first command which matches. */
42static struct connect *find_connect(struct lightningd *ld,

Callers 1

json_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected