mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
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:
parent
75838341a7
commit
e940d953bd
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue