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

Function find_connect

lightningd/connect_control.c:49–59  ·  view source on GitHub ↗

Finds first command which matches. */

Source from the content-addressed store, hash-verified

47
48/* Finds first command which matches. */
49static struct connect *find_connect(struct lightningd *ld,
50 const struct node_id *id)
51{
52 struct connect *i;
53
54 list_for_each(&ld->connects, i, list) {
55 if (node_id_eq(&i->id, id))
56 return i;
57 }
58 return NULL;
59}
60
61static struct command_result *connect_cmd_succeed(struct command *cmd,
62 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