MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sendinvreq_after_connect

Function sendinvreq_after_connect

plugins/fetchinvoice.c:818–830  ·  view source on GitHub ↗

We've connected (if we tried), so send the invreq. */

Source from the content-addressed store, hash-verified

816
817/* We've connected (if we tried), so send the invreq. */
818static struct command_result *
819sendinvreq_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
832struct connect_attempt {
833 struct node_id node_id;

Callers 3

invreq_doneFunction · 0.85
force_payer_secretFunction · 0.85
json_rawrequestFunction · 0.85

Calls 2

send_messageFunction · 0.85

Tested by

no test coverage detected