| 147 | invoice_payment_notification_serialize) |
| 148 | |
| 149 | void 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 | |
| 164 | static void invoice_creation_notification_serialize(struct json_stream *stream, |
| 165 | struct amount_msat *amount, |
no test coverage detected