We've connected (if we tried), so send the invreq. */
| 816 | |
| 817 | /* We've connected (if we tried), so send the invreq. */ |
| 818 | static struct command_result * |
| 819 | sendinvreq_after_connect(struct command *cmd, |
| 820 | const char *buf UNUSED, |
| 821 | const jsmntok_t *result UNUSED, |
| 822 | struct sent *sent) |
| 823 | { |
| 824 | struct tlv_onionmsg_payload *payload = tlv_onionmsg_payload_new(sent); |
| 825 | |
| 826 | payload->invoice_request = tal_arr(payload, u8, 0); |
| 827 | towire_tlv_invoice_request(&payload->invoice_request, sent->invreq); |
| 828 | |
| 829 | return send_message(cmd, sent, payload, sendonionmsg_done); |
| 830 | } |
| 831 | |
| 832 | struct connect_attempt { |
| 833 | struct node_id node_id; |
no test coverage detected