rpc: Properly deserialize txs with witness before signing

This commit is contained in:
MarcoFalke
2020-08-30 10:28:42 +02:00
parent baf9cedee8
commit cccc752569
2 changed files with 3 additions and 3 deletions

View File

@@ -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");
}