fix walletcreatefundedpsbt deriv paths, add test

This commit is contained in:
Gregory Sanders
2018-08-24 17:03:55 -04:00
parent 271b379e63
commit 61fe653bd9
2 changed files with 7 additions and 5 deletions

View File

@@ -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