From 077ba88b88e0d74ffb8e86f591d397cae569e6e8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 6 Sep 2019 16:11:43 +0930 Subject: [PATCH] JSON: remove listpayments. You either want listpays (high level) or listsendpays. Signed-off-by: Rusty Russell --- CHANGELOG.md | 1 + lightningd/pay.c | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d995e6d3..824477a06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ changes. - JSON API: `short_channel_id` parameters in JSON commands with `:` separators (deprecated since 0.7.0). - JSON API: `description` parameters in `pay` and `sendpay` (deprecated since 0.7.0). - JSON API: `description` output field in `waitsendpay` and `sendpay` (deprecated since 0.7.0). +- JSON API: `listpayments` (deprecated since 0.7.0). ### Fixed diff --git a/lightningd/pay.c b/lightningd/pay.c index 34ecd8e81..ff52b9aa2 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -969,15 +969,6 @@ static struct command_result *json_listsendpays(struct command *cmd, return command_success(cmd, response); } -static const struct json_command listpayments_command = { - "listpayments", - "payment", - json_listsendpays, - "Show outgoing payments", - true /* deprecated, use new name */ -}; -AUTODATA(json_command, &listpayments_command); - static const struct json_command listsendpays_command = { "listsendpays", "payment",