| 1547 | AUTODATA(json_command, &waitsendpay_command); |
| 1548 | |
| 1549 | static struct command_result *param_payment_status(struct command *cmd, |
| 1550 | const char *name, |
| 1551 | const char *buffer, |
| 1552 | const jsmntok_t *tok, |
| 1553 | enum wallet_payment_status **status) |
| 1554 | { |
| 1555 | *status = tal(cmd, enum wallet_payment_status); |
| 1556 | if (string_to_payment_status(buffer + tok->start, |
| 1557 | tok->end - tok->start, |
| 1558 | *status)) |
| 1559 | return NULL; |
| 1560 | |
| 1561 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1562 | "should be an invoice status"); |
| 1563 | } |
| 1564 | |
| 1565 | static struct command_result *json_listsendpays(struct command *cmd, |
| 1566 | const char *buffer, |
no test coverage detected