diff options
| author | MarcoFalke <[email protected]> | 2020-08-30 10:28:42 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-08-30 10:34:59 +0200 |
| commit | cccc7525697e7b8d99b545e34f0f504c78ffdb94 (patch) | |
| tree | 04a1029a319ddbf399e824f8826ccb230ba0ab87 /src/rpc/rawtransaction.cpp | |
| parent | Merge #18817: doc: Document differences in bitcoind and bitcoin-qt locale han... (diff) | |
| download | discoin-cccc7525697e7b8d99b545e34f0f504c78ffdb94.tar.xz discoin-cccc7525697e7b8d99b545e34f0f504c78ffdb94.zip | |
rpc: Properly deserialize txs with witness before signing
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
| -rw-r--r-- | src/rpc/rawtransaction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index d6988ee3a..b0df6ec28 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -644,7 +644,7 @@ static UniValue combinerawtransaction(const JSONRPCRequest& request) std::vector<CMutableTransaction> txVariants(txs.size()); for (unsigned int idx = 0; idx < txs.size(); idx++) { - if (!DecodeHexTx(txVariants[idx], txs[idx].get_str(), true)) { + if (!DecodeHexTx(txVariants[idx], txs[idx].get_str())) { throw JSONRPCError(RPC_DESERIALIZATION_ERROR, strprintf("TX decode failed for tx %d", idx)); } } @@ -766,7 +766,7 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request) RPCTypeCheck(request.params, {UniValue::VSTR, UniValue::VARR, 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"); } |