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

Function cancel_invoice

plugins/offers_invreq_hook.c:413–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413static struct command_result *cancel_invoice(struct command *cmd,
414 struct invreq *ir)
415{
416 /* We create an invoice, so we can mark the cancellation, but with
417 * expiry 0. And we don't send it to them! */
418 *ir->inv->invoice_relative_expiry = 0;
419
420 /* In case they set a reply path! */
421 ir->reply_path = tal_free(ir->reply_path);
422 return create_invoicereq(cmd, ir);
423}
424
425static struct command_result *check_period(struct command *cmd,
426 struct invreq *ir,

Callers 1

check_periodFunction · 0.85

Calls 2

tal_freeFunction · 0.85
create_invoicereqFunction · 0.85

Tested by

no test coverage detected