| 242 | } |
| 243 | |
| 244 | REGISTER_NOTIFICATION(invoice_creation) |
| 245 | |
| 246 | void 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! */ |
| 260 | static void channel_opened_notification_serialize(struct json_stream *stream, |
no test coverage detected