We've received neither a reply nor a payment; return failure. */
| 647 | |
| 648 | /* We've received neither a reply nor a payment; return failure. */ |
| 649 | static struct command_result *timeout_sent_inv(struct command *timer_cmd, |
| 650 | struct sent *sent) |
| 651 | { |
| 652 | struct json_out *details = json_out_new(sent); |
| 653 | |
| 654 | json_out_start(details, NULL, '{'); |
| 655 | json_out_addstr(details, "invstring", invoice_encode(tmpctx, sent->inv)); |
| 656 | json_out_end(details, '}'); |
| 657 | |
| 658 | /* This will free sent! */ |
| 659 | discard_result(command_done_err(sent->cmd, OFFER_TIMEOUT, |
| 660 | "Failed: timeout waiting for response", |
| 661 | details)); |
| 662 | return timer_complete(timer_cmd); |
| 663 | } |
| 664 | |
| 665 | static struct command_result *prepare_inv_timeout(struct command *cmd, |
| 666 | const char *method UNUSED, |
nothing calls this directly
no test coverage detected