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

Function connect_ok

plugins/establish_onion_path.c:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21static struct command_result *connect_ok(struct command *cmd,
22 const char *method,
23 const char *buf,
24 const jsmntok_t *result,
25 struct connect_info *ci)
26{
27 struct pubkey *path = tal_arr(tmpctx, struct pubkey, 2);
28
29 /* Create direct mini-path */
30 path[0] = ci->local_id;
31 path[1] = ci->dst;
32
33 return ci->cb(cmd, path, ci->arg);
34}
35
36static struct command_result *command_failed(struct command *cmd,
37 const char *method,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected