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

Function notify_invoice_creation

lightningd/notification.c:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 invoice_creation_notification_serialize)
182
183void notify_invoice_creation(struct lightningd *ld, struct amount_msat *amount,
184 struct preimage preimage,
185 const struct json_escape *label)
186{
187 void (*serialize)(struct json_stream *,
188 struct amount_msat *,
189 struct preimage,
190 const struct json_escape *) = invoice_creation_notification_gen.serialize;
191
192 struct jsonrpc_notification *n
193 = jsonrpc_notification_start(NULL, invoice_creation_notification_gen.topic);
194 serialize(n->stream, amount, preimage, label);
195 jsonrpc_notification_end(n);
196 plugins_notify(ld->plugins, take(n));
197}
198
199/* FIXME: Use outpoint here! */
200static void channel_opened_notification_serialize(struct json_stream *stream,

Callers 2

invoice_completeFunction · 0.70
json_createinvoiceFunction · 0.70

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected