| 380 | sendpay_success_notification_serialize); |
| 381 | |
| 382 | void notify_sendpay_success(struct lightningd *ld, |
| 383 | const struct wallet_payment *payment) |
| 384 | { |
| 385 | void (*serialize)(struct json_stream *, |
| 386 | const struct wallet_payment *) = sendpay_success_notification_gen.serialize; |
| 387 | |
| 388 | struct jsonrpc_notification *n = |
| 389 | jsonrpc_notification_start(NULL, "sendpay_success"); |
| 390 | serialize(n->stream, payment); |
| 391 | jsonrpc_notification_end(n); |
| 392 | plugins_notify(ld->plugins, take(n)); |
| 393 | } |
| 394 | |
| 395 | static void sendpay_failure_notification_serialize(struct json_stream *stream, |
| 396 | const struct wallet_payment *payment, |
no test coverage detected