We've received neither a reply nor a payment; return failure. */
| 688 | |
| 689 | /* We've received neither a reply nor a payment; return failure. */ |
| 690 | static struct command_result *timeout_sent_inv(struct command *timer_cmd, |
| 691 | struct sent *sent) |
| 692 | { |
| 693 | struct json_out *details = json_out_new(sent); |
| 694 | |
| 695 | json_out_start(details, NULL, '{'); |
| 696 | json_out_addstr(details, "invstring", invoice_encode(tmpctx, sent->inv)); |
| 697 | json_out_end(details, '}'); |
| 698 | |
| 699 | /* This will free sent! */ |
| 700 | discard_result(command_done_err(sent->cmd, OFFER_TIMEOUT, |
| 701 | "Failed: timeout waiting for response", |
| 702 | details)); |
| 703 | return timer_complete(timer_cmd); |
| 704 | } |
| 705 | |
| 706 | static struct command_result *prepare_inv_timeout(struct command *cmd, |
| 707 | const char *method UNUSED, |
nothing calls this directly
no test coverage detected