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

Function send_message

plugins/fetchinvoice.c:667–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static 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. */
690static 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