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

Function listpeers_done

plugins/establish_onion_path.c:227–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227static struct command_result *listpeers_done(struct command *cmd,
228 const char *method,
229 const char *buf,
230 const jsmntok_t *result,
231 struct connect_info *ci)
232{
233 const struct pubkey *path;
234
235 path = path_to_node(tmpctx, cmd,
236 ci->gossmap, cmd->plugin, buf, result,
237 &ci->local_id, &ci->dst);
238 if (!path)
239 return connect_direct(cmd, ci);
240
241 return ci->cb(cmd, path, ci->arg);
242}
243
244struct command_result *establish_onion_path_(struct command *cmd,
245 struct gossmap *gossmap,

Callers

nothing calls this directly

Calls 2

path_to_nodeFunction · 0.85
connect_directFunction · 0.85

Tested by

no test coverage detected