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

Function getmychannels_cb

plugins/renepay/mods.c:406–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406static struct command_result *getmychannels_cb(struct payment *payment)
407{
408 struct command *cmd = payment_command(payment);
409 if (!cmd)
410 plugin_err(pay_plugin->plugin,
411 "getmychannels_pay_mod: cannot get a valid cmd.");
412
413 struct out_req *req = jsonrpc_request_start(
414 cmd, "listpeerchannels", getmychannels_done,
415 payment_rpc_failure, payment);
416 return send_outreq(req);
417}
418
419REGISTER_PAYMENT_MODIFIER(getmychannels, getmychannels_cb);
420

Callers

nothing calls this directly

Calls 3

payment_commandFunction · 0.85
plugin_errFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected