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

Function send_onion_reply_after_established

plugins/offers.c:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201};
202
203static struct command_result *send_onion_reply_after_established(struct command *cmd,
204 const struct pubkey *path,
205 struct onion_reply *onion_reply)
206{
207 struct onion_message *omsg;
208
209 omsg = outgoing_onion_message(tmpctx, path, NULL, onion_reply->reply_path, onion_reply->payload);
210 return inject_onionmessage(cmd, omsg, finished, injectonionmessage_error, onion_reply);
211}
212
213static struct command_result *send_onion_reply_not_established(struct command *cmd,
214 const char *why,

Callers

nothing calls this directly

Calls 1

outgoing_onion_messageFunction · 0.85

Tested by

no test coverage detected