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

Function notify_onionmessage_forward_fail

lightningd/notification.c:182–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180REGISTER_NOTIFICATION(onionmessage_forward_fail);
181
182void notify_onionmessage_forward_fail(struct lightningd *ld,
183 const struct node_id *source,
184 const u8 *incoming,
185 const struct pubkey *path_key,
186 const u8 *outgoing,
187 const struct sciddir_or_pubkey *next_node)
188{
189 struct jsonrpc_notification *n = notify_start(ld, "onionmessage_forward_fail");
190 if (!n)
191 return;
192 onionmessage_forward_fail_serialize(n->stream,
193 source,
194 incoming,
195 path_key,
196 outgoing,
197 next_node);
198 notify_send(ld, n);
199}
200
201static void invoice_payment_notification_serialize(struct json_stream *stream,
202 struct amount_msat amount,

Callers 1

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected