aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-11-11 16:54:51 -0800
committerPieter Wuille <[email protected]>2016-12-02 18:28:22 -0800
commitc3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f (patch)
treebbf3dcfb1a227471e9a4fe802dfe0d0f22191916 /src/wallet/test/wallet_tests.cpp
parentSwitch GetTransaction to returning a CTransactionRef (diff)
downloaddiscoin-c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f.tar.xz
discoin-c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f.zip
Make CWalletTx store a CTransactionRef instead of inheriting
Diffstat (limited to 'src/wallet/test/wallet_tests.cpp')
-rw-r--r--src/wallet/test/wallet_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp
index ecbbcb145..8085706a9 100644
--- a/src/wallet/test/wallet_tests.cpp
+++ b/src/wallet/test/wallet_tests.cpp
@@ -42,7 +42,7 @@ static void add_coin(const CAmount& nValue, int nAge = 6*24, bool fIsFromMe = fa
// so stop vin being empty, and cache a non-zero Debit to fake out IsFromMe()
tx.vin.resize(1);
}
- CWalletTx* wtx = new CWalletTx(&wallet, tx);
+ CWalletTx* wtx = new CWalletTx(&wallet, MakeTransactionRef(std::move(tx)));
if (fIsFromMe)
{
wtx->fDebitCached = true;