| 665 | } |
| 666 | |
| 667 | static struct command_result *send_message(struct command *cmd, |
| 668 | struct sent *sent, |
| 669 | bool want_reply, |
| 670 | struct tlv_onionmsg_tlv *final_tlv STEALS, |
| 671 | struct command_result *(*done) |
| 672 | (struct command *cmd, |
| 673 | const char *method UNUSED, |
| 674 | const char *buf UNUSED, |
| 675 | const jsmntok_t *result UNUSED, |
| 676 | struct sent *sent)) |
| 677 | { |
| 678 | struct establishing_paths *epaths = tal(sent, struct establishing_paths); |
| 679 | |
| 680 | epaths->which_blinded_path = 0; |
| 681 | epaths->sent = sent; |
| 682 | epaths->final_tlv = tal_steal(epaths, final_tlv); |
| 683 | epaths->done = done; |
| 684 | epaths->want_reply = want_reply; |
| 685 | |
| 686 | return try_establish(cmd, epaths); |
| 687 | } |
| 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, |
no test coverage detected