| 411 | } |
| 412 | |
| 413 | static 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 | |
| 425 | static struct command_result *check_period(struct command *cmd, |
| 426 | struct invreq *ir, |
no test coverage detected