diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-11-11 16:54:51 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-12-02 18:28:22 -0800 |
commit | c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f (patch) | |
tree | bbf3dcfb1a227471e9a4fe802dfe0d0f22191916 /src/wallet/rpcdump.cpp | |
parent | a1883536b455b889f1ebfca9e50d1e0ef28a7731 (diff) |
Make CWalletTx store a CTransactionRef instead of inheriting
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 671b391c78..28a905efa7 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -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; |