| 164 | } |
| 165 | |
| 166 | static struct command_result *sendpay_success(struct command *cmd, |
| 167 | const struct wallet_payment *payment) |
| 168 | { |
| 169 | struct json_stream *response; |
| 170 | |
| 171 | assert(payment->status == PAYMENT_COMPLETE); |
| 172 | |
| 173 | response = json_stream_success(cmd); |
| 174 | json_add_payment_fields(response, payment); |
| 175 | return command_success(cmd, response); |
| 176 | } |
| 177 | |
| 178 | static void |
| 179 | json_add_routefail_info(struct json_stream *js, |
no test coverage detected