| 212 | } |
| 213 | |
| 214 | REGISTER_NOTIFICATION(invoice_payment) |
| 215 | |
| 216 | void 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 | |
| 229 | static void invoice_creation_notification_serialize(struct json_stream *stream, |
| 230 | const struct amount_msat *amount, |
no test coverage detected