We've received neither a reply nor a payment; return failure. */
| 790 | |
| 791 | /* We've received neither a reply nor a payment; return failure. */ |
| 792 | static 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 | |
| 806 | static struct command_result *prepare_inv_timeout(struct command *cmd, |
| 807 | const char *buf UNUSED, |
nothing calls this directly
no test coverage detected