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

Function timeout_sent_inv

plugins/fetchinvoice.c:792–804  ·  view source on GitHub ↗

We've received neither a reply nor a payment; return failure. */

Source from the content-addressed store, hash-verified

790
791/* We've received neither a reply nor a payment; return failure. */
792static void timeout_sent_inv(struct sent *sent)
793{
794 struct json_out *details = json_out_new(sent);
795
796 json_out_start(details, NULL, '{');
797 json_out_addstr(details, "invstring", invoice_encode(tmpctx, sent->inv));
798 json_out_end(details, '}');
799
800 /* This will free sent! */
801 discard_result(command_done_err(sent->cmd, OFFER_TIMEOUT,
802 "Failed: timeout waiting for response",
803 details));
804}
805
806static struct command_result *prepare_inv_timeout(struct command *cmd,
807 const char *buf UNUSED,

Callers

nothing calls this directly

Calls 7

json_out_newFunction · 0.85
json_out_startFunction · 0.85
json_out_addstrFunction · 0.85
json_out_endFunction · 0.85
discard_resultFunction · 0.85
command_done_errFunction · 0.85
invoice_encodeFunction · 0.50

Tested by

no test coverage detected