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

Function new_connect

lightningd/connect_control.c:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

json_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected