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

Function send_message

plugins/fetchinvoice.c:626–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static 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. */
649static struct command_result *timeout_sent_inv(struct command *timer_cmd,

Callers 3

invreq_doneFunction · 0.85
createinvoice_doneFunction · 0.85
json_dev_rawrequestFunction · 0.85

Calls 1

try_establishFunction · 0.85

Tested by

no test coverage detected