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

Function notify_invoice_payment

lightningd/notification.c:149–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 invoice_payment_notification_serialize)
148
149void notify_invoice_payment(struct lightningd *ld, struct amount_msat amount,
150 struct preimage preimage, const struct json_escape *label)
151{
152 void (*serialize)(struct json_stream *,
153 struct amount_msat,
154 struct preimage,
155 const struct json_escape *) = invoice_payment_notification_gen.serialize;
156
157 struct jsonrpc_notification *n
158 = jsonrpc_notification_start(NULL, invoice_payment_notification_gen.topic);
159 serialize(n->stream, amount, preimage, label);
160 jsonrpc_notification_end(n);
161 plugins_notify(ld->plugins, take(n));
162}
163
164static void invoice_creation_notification_serialize(struct json_stream *stream,
165 struct amount_msat *amount,

Callers 1

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected