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

Function notify_invoice_payment

lightningd/notification.c:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214REGISTER_NOTIFICATION(invoice_payment)
215
216void notify_invoice_payment(struct lightningd *ld,
217 struct amount_msat amount,
218 const struct preimage *preimage,
219 const struct json_escape *label,
220 const struct bitcoin_outpoint *outpoint)
221{
222 struct jsonrpc_notification *n = notify_start(ld, "invoice_payment");
223 if (!n)
224 return;
225 invoice_payment_notification_serialize(n->stream, amount, preimage, label, outpoint);
226 notify_send(ld, n);
227}
228
229static void invoice_creation_notification_serialize(struct json_stream *stream,
230 const struct amount_msat *amount,

Callers 2

self_paymentFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected