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

Function notify_invoice_creation

lightningd/notification.c:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244REGISTER_NOTIFICATION(invoice_creation)
245
246void notify_invoice_creation(struct lightningd *ld,
247 const struct amount_msat *amount,
248 const struct preimage *preimage,
249 const struct json_escape *label,
250 const struct sha256 *offer_id)
251{
252 struct jsonrpc_notification *n = notify_start(ld, "invoice_creation");
253 if (!n)
254 return;
255 invoice_creation_notification_serialize(n->stream, amount, preimage, label, offer_id);
256 notify_send(ld, n);
257}
258
259/* FIXME: Use outpoint here! */
260static void channel_opened_notification_serialize(struct json_stream *stream,

Callers 2

invoice_completeFunction · 0.70
json_createinvoiceFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected