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

Function send_routes_cb

plugins/renepay/mods.c:807–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807static struct command_result *send_routes_cb(struct payment *payment)
808{
809 struct command *cmd;
810 struct out_req *req;
811 assert(payment);
812 cmd = payment_command(payment);
813 if (!cmd)
814 plugin_err(pay_plugin->plugin,
815 "send_routes_pay_mod: cannot get a valid cmd.");
816 req =
817 jsonrpc_request_start(cmd, "waitblockheight", waitblockheight_done,
818 payment_rpc_failure, payment);
819 json_add_num(req->js, "blockheight", 0);
820 return send_outreq(req);
821}
822
823REGISTER_PAYMENT_MODIFIER(send_routes, send_routes_cb);
824

Callers

nothing calls this directly

Calls 4

payment_commandFunction · 0.85
json_add_numFunction · 0.85
plugin_errFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected