[rpc] walletcreatefundedpsbt: don't automatically append inputs

When the user doesn't specificy inputs, it makes sense to automatically select them. But when the user does specify inputs, we now fail if the amount is insufficient, unless addInputs is set to true.
This commit is contained in:
Sjors Provoost
2019-07-12 13:30:10 +01:00
parent 5c73645ac7
commit 79804fe24b
6 changed files with 47 additions and 16 deletions

View File

@@ -0,0 +1,6 @@
RPC changes
-----------
- The `walletcreatefundedpsbt` RPC call will now fail with
`Insufficient funds` when inputs are manually selected but are not enough to cover
the outputs and fee. Additional inputs can automatically be added through the
new `add_inputs` option.