We defer sendpay "success" until we know it's pending; consumes cmd */
| 292 | |
| 293 | /* We defer sendpay "success" until we know it's pending; consumes cmd */ |
| 294 | static struct command_result * |
| 295 | json_sendpay_in_progress(struct command *cmd, |
| 296 | const struct wallet_payment *payment) |
| 297 | { |
| 298 | struct json_stream *response = json_stream_success(cmd); |
| 299 | json_add_string(response, "message", |
| 300 | "Monitor status with listpays or waitsendpay"); |
| 301 | json_add_payment_fields(response, payment); |
| 302 | return command_success(cmd, response); |
| 303 | } |
| 304 | |
| 305 | static void tell_waiters_failed(struct lightningd *ld, |
| 306 | const struct sha256 *payment_hash, |
no test coverage detected