| 651 | } |
| 652 | |
| 653 | static void outgoing_notify_success(const struct attempt *attempt) |
| 654 | { |
| 655 | struct json_stream *js = plugin_notification_start(NULL, "pay_part_end"); |
| 656 | json_add_string(js, "status", "success"); |
| 657 | json_add_timerel(js, "duration", timemono_between(time_mono(), attempt->start_time)); |
| 658 | json_add_attempt_fields(js, attempt); |
| 659 | plugin_notification_end(attempt->payment->plugin, js); |
| 660 | } |
| 661 | |
| 662 | static void outgoing_notify_failure(const struct attempt *attempt, |
| 663 | int failindex, int errcode, |
no test coverage detected