From e940d953bd2163d5568fcb03b4d7f16c591b6e01 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 25 Mar 2020 14:09:40 +1030 Subject: [PATCH] fundchannel_start: We can't deprecate 'satoshi' here, since 'amount' wasn't sent So we can't tell people they should use amount, until v0.8.2 is released. Another 6 months before we can deprecated the 'satoshi' field here :( Fixes: d149ba2f3adef535b7ee55090bcc57837989863b Signed-off-by: Rusty Russell Changelog-Fixed: JSON: `fundchannel_start` returns `amount` even when deprecated APIs are enabled. Changelog-Deprecated: JSON: `fundchannel_start` `satoshi` field really deprecated now (use `amount`). --- plugins/fundchannel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/fundchannel.c b/plugins/fundchannel.c index 634870628..a2c1ad884 100644 --- a/plugins/fundchannel.c +++ b/plugins/fundchannel.c @@ -272,8 +272,7 @@ static struct command_result *fundchannel_start(struct command *cmd, if (deprecated_apis) json_add_string(req->js, "satoshi", fr->funding_str); - else - json_add_string(req->js, "amount", fr->funding_str); + json_add_string(req->js, "amount", fr->funding_str); if (fr->feerate_str) json_add_string(req->js, "feerate", fr->feerate_str);