fundpsbt: deprecate reserve=true/false usage.

Make it always a number; this makes the JSON request specification
simpler.  We allowed a number since v0.10.1.

(reserve=True is the default anyway, so usually it can be omitted:
reserve=False becomes reserve=0).

Changelog-Deprecated: JSON-RPC: `fundpsbt`/`utxopsbt` `reserve` must be a number, not bool (for `true` use 72/don't specify, for `false` use 0).  Numbers have been allowed since v0.10.1.
This commit is contained in:
Rusty Russell
2022-04-01 14:42:45 +10:30
parent 3feb634d31
commit bf4d9e30d2
8 changed files with 36 additions and 41 deletions

View File

@@ -369,7 +369,6 @@ static struct command_result *start_mw(struct multiwithdraw_command *mw)
mw);
json_add_u32(req->js, "minconf", *mw->minconf);
}
json_add_bool(req->js, "reserve", true);
if (mw->has_all)
json_add_string(req->js, "satoshi", "all");
else {