diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-07-11 18:50:45 +0100 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2020-09-07 20:33:16 +0200 |
commit | 1bc8d0fd5906bc9637d513cd193a1f47ad94da28 (patch) | |
tree | be9216ebdda7218dc910d5279b291434bf308cad /src/wallet | |
parent | 25839661305ec9fe8c25d171e31270d95311a4e4 (diff) |
[rpc] walletcreatefundedpsbt: allow inputs to be null
This is of neglible use here, but it allows new RPC methods to take outputs as their first argument and make inputs optional.
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 891d650ad3..c00f5b1b70 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3997,7 +3997,7 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request) "\nCreates and funds a transaction in the Partially Signed Transaction format.\n" "Implements the Creator and Updater roles.\n", { - {"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "The inputs. Leave empty to add inputs automatically. See add_inputs option.", + {"inputs", RPCArg::Type::ARR, RPCArg::Optional::OMITTED_NAMED_ARG, "Leave empty to add inputs automatically. See add_inputs option.", { {"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "", { |