| 624 | } |
| 625 | |
| 626 | static struct command_result *send_message(struct command *cmd, |
| 627 | struct sent *sent, |
| 628 | bool want_reply, |
| 629 | struct tlv_onionmsg_tlv *final_tlv STEALS, |
| 630 | struct command_result *(*done) |
| 631 | (struct command *cmd, |
| 632 | const char *method UNUSED, |
| 633 | const char *buf UNUSED, |
| 634 | const jsmntok_t *result UNUSED, |
| 635 | struct sent *sent)) |
| 636 | { |
| 637 | struct establishing_paths *epaths = tal(sent, struct establishing_paths); |
| 638 | |
| 639 | epaths->which_blinded_path = 0; |
| 640 | epaths->sent = sent; |
| 641 | epaths->final_tlv = tal_steal(epaths, final_tlv); |
| 642 | epaths->done = done; |
| 643 | epaths->want_reply = want_reply; |
| 644 | |
| 645 | return try_establish(cmd, epaths); |
| 646 | } |
| 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, |
no test coverage detected