aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-07-05 17:39:31 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-09-03 15:49:19 -0400
commit39034f1ee628dae0bc9da5b1b30b8a424e66d968 (patch)
tree9ab0166fd8e4000175fb702d7adfd53d6251728e /src/wallet
parent7d6f63cc2c2b9c4f07a43619eef0b7314474fffd (diff)
Refactor rawtransaction_util's SignTransaction to have previous tx parsing be separate
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/rpcwallet.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 30e767e489..551657c373 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3269,7 +3269,10 @@ UniValue signrawtransactionwithwallet(const JSONRPCRequest& request)
}
pwallet->chain().findCoins(coins);
- return SignTransaction(mtx, request.params[1], pwallet, coins, false, request.params[2]);
+ // Parse the prevtxs array
+ ParsePrevouts(request.params[1], nullptr, coins);
+
+ return SignTransaction(mtx, pwallet, coins, request.params[2]);
}
static UniValue bumpfee(const JSONRPCRequest& request)