aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2020-08-30 10:28:42 +0200
committerMarcoFalke <[email protected]>2020-08-30 10:34:59 +0200
commitcccc7525697e7b8d99b545e34f0f504c78ffdb94 (patch)
tree04a1029a319ddbf399e824f8826ccb230ba0ab87 /src/wallet/rpcwallet.cpp
parentMerge #18817: doc: Document differences in bitcoind and bitcoin-qt locale han... (diff)
downloaddiscoin-cccc7525697e7b8d99b545e34f0f504c78ffdb94.tar.xz
discoin-cccc7525697e7b8d99b545e34f0f504c78ffdb94.zip
rpc: Properly deserialize txs with witness before signing
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 17512265b..6978fc400 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3229,7 +3229,7 @@ UniValue signrawtransactionwithwallet(const JSONRPCRequest& request)
RPCTypeCheck(request.params, {UniValue::VSTR, UniValue::VARR, UniValue::VSTR}, true);
CMutableTransaction mtx;
- if (!DecodeHexTx(mtx, request.params[0].get_str(), true)) {
+ if (!DecodeHexTx(mtx, request.params[0].get_str())) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}