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

Function find_connect

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

Finds first command which matches. */

Source from the content-addressed store, hash-verified

40
41/* Finds first command which matches. */
42static struct connect *find_connect(struct lightningd *ld,
43 const struct node_id *id)
44{
45 struct connect *i;
46
47 list_for_each(&ld->connects, i, list) {
48 if (node_id_eq(&i->id, id))
49 return i;
50 }
51 return NULL;
52}
53
54static struct command_result *connect_cmd_succeed(struct command *cmd,
55 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