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: d149ba2f3a
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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`).
This commit is contained in:
Rusty Russell 2020-03-25 14:09:40 +10:30 committed by Christian Decker
parent 75838341a7
commit e940d953bd

View file

@ -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);