| 418 | REGISTER_NOTIFICATION(sendpay_success); |
| 419 | |
| 420 | void notify_sendpay_success(struct lightningd *ld, |
| 421 | const struct wallet_payment *payment) |
| 422 | { |
| 423 | struct jsonrpc_notification *n = notify_start(ld, "sendpay_success"); |
| 424 | if (!n) |
| 425 | return; |
| 426 | json_add_payment_fields(n->stream, payment); |
| 427 | notify_send(ld, n); |
| 428 | } |
| 429 | |
| 430 | static void sendpay_failure_notification_serialize(struct json_stream *stream, |
| 431 | const struct wallet_payment *payment, |
no test coverage detected