Make CWalletTx store a CTransactionRef instead of inheriting
This commit is contained in:
@@ -271,7 +271,7 @@ UniValue importprunedfunds(const JSONRPCRequest& request)
|
||||
if (!DecodeHexTx(tx, request.params[0].get_str()))
|
||||
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
|
||||
uint256 hashTx = tx.GetHash();
|
||||
CWalletTx wtx(pwalletMain,tx);
|
||||
CWalletTx wtx(pwalletMain, MakeTransactionRef(std::move(tx)));
|
||||
|
||||
CDataStream ssMB(ParseHexV(request.params[1], "proof"), SER_NETWORK, PROTOCOL_VERSION);
|
||||
CMerkleBlock merkleBlock;
|
||||
|
||||
Reference in New Issue
Block a user