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

Function find_connect

lightningd/connect_control.c:45–55  ·  view source on GitHub ↗

Finds first command which matches. */

Source from the content-addressed store, hash-verified

43
44/* Finds first command which matches. */
45static struct connect *find_connect(struct lightningd *ld,
46 const struct node_id *id)
47{
48 struct connect *i;
49
50 list_for_each(&ld->connects, i, list) {
51 if (node_id_eq(&i->id, id))
52 return i;
53 }
54 return NULL;
55}
56
57static struct command_result *connect_cmd_succeed(struct command *cmd,
58 const struct peer *peer,

Callers 3

connect_failedFunction · 0.85
connect_any_cmd_idFunction · 0.85
connect_succeededFunction · 0.85

Calls 1

node_id_eqFunction · 0.85

Tested by

no test coverage detected