We defer sendpay "success" until we know it's pending; consumes cmd */
| 264 | |
| 265 | /* We defer sendpay "success" until we know it's pending; consumes cmd */ |
| 266 | static struct command_result * |
| 267 | json_sendpay_in_progress(struct command *cmd, |
| 268 | const struct wallet_payment *payment) |
| 269 | { |
| 270 | struct json_stream *response = json_stream_success(cmd); |
| 271 | json_add_string(response, "message", |
| 272 | "Monitor status with listpays or waitsendpay"); |
| 273 | json_add_payment_fields(response, payment); |
| 274 | return command_success(cmd, response); |
| 275 | } |
| 276 | |
| 277 | static void tell_waiters_failed(struct lightningd *ld, |
| 278 | const struct sha256 *payment_hash, |
no test coverage detected