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

Function shadow_route_extend

plugins/libplugin-pay.c:3289–3298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3287 struct payment *p);
3288
3289static struct command_result *shadow_route_extend(struct shadow_route_data *d,
3290 struct payment *p)
3291{
3292 struct out_req *req;
3293 req = jsonrpc_request_start(payment_cmd(p), "listchannels",
3294 shadow_route_listchannels,
3295 payment_rpc_failure, p);
3296 json_add_node_id(req->js, "source", &d->destination);
3297 return send_outreq(req);
3298}
3299
3300static struct command_result *shadow_route_listchannels(struct command *cmd,
3301 const char *method,

Callers 2

shadow_route_cbFunction · 0.85

Calls 3

payment_cmdFunction · 0.85
json_add_node_idFunction · 0.85
send_outreqFunction · 0.70

Tested by

no test coverage detected