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

Function end_cb

plugins/renepay/mods.c:935–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933 "Payment execution ended without success.");
934}
935static struct command_result *end_cb(struct payment *payment)
936{
937 struct command *cmd = payment_command(payment);
938 assert(cmd);
939 struct out_req *req =
940 jsonrpc_request_start(cmd, "waitblockheight", end_done,
941 payment_rpc_failure, payment);
942 json_add_num(req->js, "blockheight", 0);
943 return send_outreq(req);
944}
945
946REGISTER_PAYMENT_MODIFIER(end, end_cb);
947

Callers

nothing calls this directly

Calls 3

payment_commandFunction · 0.85
json_add_numFunction · 0.85
send_outreqFunction · 0.50

Tested by

no test coverage detected