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

Function payment_getlocalmods

plugins/libplugin-pay.c:1038–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038static struct command_result *payment_getlocalmods(struct payment *p)
1039{
1040 struct out_req *req;
1041
1042 /* Don't call listpeerchannels if we already have mods */
1043 if (p->mods)
1044 return payment_getroute(p);
1045
1046 req = jsonrpc_request_start(payment_cmd(p), "listpeerchannels",
1047 &payment_listpeerchannels_success,
1048 &payment_rpc_failure, p);
1049 return send_outreq(req);
1050}
1051
1052static struct payment_result *tal_sendpay_result_from_json(const tal_t *ctx,
1053 const char *buffer,

Callers 1

payment_continueFunction · 0.85

Calls 3

payment_getrouteFunction · 0.85
payment_cmdFunction · 0.85
send_outreqFunction · 0.70

Tested by

no test coverage detected