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

Function new_connect

lightningd/connect_control.c:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

json_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected