| 190 | } |
| 191 | |
| 192 | static struct command_result *sendpay_success(struct command *cmd, |
| 193 | const struct wallet_payment *payment, |
| 194 | void *unused) |
| 195 | { |
| 196 | struct json_stream *response; |
| 197 | |
| 198 | assert(payment->status == PAYMENT_COMPLETE); |
| 199 | |
| 200 | response = json_stream_success(cmd); |
| 201 | json_add_payment_fields(response, payment); |
| 202 | return command_success(cmd, response); |
| 203 | } |
| 204 | |
| 205 | static void |
| 206 | json_add_routefail_info(struct json_stream *js, |
no test coverage detected