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

Function send_message

plugins/fetchinvoice.c:774–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774static struct command_result *send_message(struct command *cmd,
775 struct sent *sent,
776 struct tlv_onionmsg_payload *payload STEALS,
777 struct command_result *(*done)
778 (struct command *cmd,
779 const char *buf UNUSED,
780 const jsmntok_t *result UNUSED,
781 struct sent *sent))
782{
783 struct sending *sending = tal(cmd, struct sending);
784 sending->sent = sent;
785 sending->payload = tal_steal(sending, payload);
786 sending->done = done;
787
788 return make_reply_path(cmd, sending);
789}
790
791/* We've received neither a reply nor a payment; return failure. */
792static void timeout_sent_inv(struct sent *sent)

Callers 2

sendinvreq_after_connectFunction · 0.85

Calls 1

make_reply_pathFunction · 0.85

Tested by

no test coverage detected