| 452 | REGISTER_NOTIFICATION(sendpay_failure); |
| 453 | |
| 454 | void notify_sendpay_failure(struct lightningd *ld, |
| 455 | const struct wallet_payment *payment, |
| 456 | enum jsonrpc_errcode pay_errcode, |
| 457 | const struct onionreply *onionreply, |
| 458 | const struct routing_failure *fail, |
| 459 | const char *errmsg) |
| 460 | { |
| 461 | struct jsonrpc_notification *n = notify_start(ld, "sendpay_failure"); |
| 462 | if (!n) |
| 463 | return; |
| 464 | sendpay_failure_notification_serialize(n->stream, payment, pay_errcode, onionreply, fail, errmsg); |
| 465 | notify_send(ld, n); |
| 466 | } |
| 467 | |
| 468 | static void json_add_standard_notify_mvt_fields(struct json_stream *stream, |
| 469 | struct lightningd *ld, |
no test coverage detected