aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-11-18 14:56:52 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-11-18 15:28:15 -0500
commit4b0c718f8f48c678cbe4575e9a9cf9e62a30f0da (patch)
tree572d2fd66b58da28d4adab0f32adefdf1b21ae15 /src/wallet
parentbc38bb9a6036d73f507e66a2f588547f3f17e4b1 (diff)
downloadbitcoin-4b0c718f8f48c678cbe4575e9a9cf9e62a30f0da.tar.xz
Accumulate result UniValue in SignTransaction
SignTransaction will be called multiple times in the future. Pass it a result UniValue so that it can accumulate the results of multiple SignTransaction passes.
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/rpcwallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 3ef2f883c3..939e1fddfb 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3281,7 +3281,9 @@ UniValue signrawtransactionwithwallet(const JSONRPCRequest& request)
// Parse the prevtxs array
ParsePrevouts(request.params[1], nullptr, coins);
- return SignTransaction(mtx, &*pwallet->GetLegacyScriptPubKeyMan(), coins, request.params[2]);
+ UniValue result(UniValue::VOBJ);
+ SignTransaction(mtx, &*pwallet->GetLegacyScriptPubKeyMan(), coins, request.params[2], result);
+ return result;
}
static UniValue bumpfee(const JSONRPCRequest& request)