Browse Source

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`).
travis-debug
Rusty Russell 5 years ago
committed by Christian Decker
parent
commit
e940d953bd
  1. 3
      plugins/fundchannel.c

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

Loading…
Cancel
Save