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

Function shadow_route_extend

plugins/libplugin-pay.c:3305–3314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3303 struct payment *p);
3304
3305static struct command_result *shadow_route_extend(struct shadow_route_data *d,
3306 struct payment *p)
3307{
3308 struct out_req *req;
3309 req = jsonrpc_request_start(payment_cmd(p), "listchannels",
3310 shadow_route_listchannels,
3311 payment_rpc_failure, p);
3312 json_add_node_id(req->js, "source", &d->destination);
3313 return send_outreq(req);
3314}
3315
3316static struct command_result *shadow_route_listchannels(struct command *cmd,
3317 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