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

Function shadow_route_extend

plugins/libplugin-pay.c:3013–3022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3011 struct payment *p);
3012
3013static struct command_result *shadow_route_extend(struct shadow_route_data *d,
3014 struct payment *p)
3015{
3016 struct out_req *req;
3017 req = jsonrpc_request_start(p->plugin, NULL, "listchannels",
3018 shadow_route_listchannels,
3019 payment_rpc_failure, p);
3020 json_add_node_id(req->js, "source", &d->destination);
3021 return send_outreq(p->plugin, req);
3022}
3023
3024static struct command_result *shadow_route_listchannels(struct command *cmd,
3025 const char *buf,

Callers 2

shadow_route_cbFunction · 0.85

Calls 2

send_outreqFunction · 0.70
json_add_node_idFunction · 0.50

Tested by

no test coverage detected