aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-08-24 17:03:55 -0400
committerGregory Sanders <gsanders87@gmail.com>2018-08-24 17:03:55 -0400
commit61fe653bd919cb0533b2b9d6259bc86a4b2975c0 (patch)
treec5da1cd48ab1fe0186671afc6d820fb76deb96a2 /src/wallet/rpcwallet.cpp
parent271b379e636afa419c5208cb462c07090490266c (diff)
fix walletcreatefundedpsbt deriv paths, add test
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index b108d6df53..5ff3fa7067 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -4742,7 +4742,7 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request)
const CTransaction txConst(*psbtx.tx);
// Fill transaction with out data but don't sign
- bool bip32derivs = request.params[4].isNull() ? false : request.params[5].get_bool();
+ bool bip32derivs = request.params[4].isNull() ? false : request.params[4].get_bool();
FillPSBT(pwallet, psbtx, &txConst, 1, false, bip32derivs);
// Serialize the PSBT