diff options
| author | Pieter Wuille <[email protected]> | 2016-11-11 16:54:51 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-12-02 18:28:22 -0800 |
| commit | c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f (patch) | |
| tree | bbf3dcfb1a227471e9a4fe802dfe0d0f22191916 /src/wallet/test/accounting_tests.cpp | |
| parent | Switch GetTransaction to returning a CTransactionRef (diff) | |
| download | discoin-c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f.tar.xz discoin-c3f5673a6304e3ea9fa56fff66b6ea1cb73cc98f.zip | |
Make CWalletTx store a CTransactionRef instead of inheriting
Diffstat (limited to 'src/wallet/test/accounting_tests.cpp')
| -rw-r--r-- | src/wallet/test/accounting_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/test/accounting_tests.cpp b/src/wallet/test/accounting_tests.cpp index a833be13d..eb14d176b 100644 --- a/src/wallet/test/accounting_tests.cpp +++ b/src/wallet/test/accounting_tests.cpp @@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) { CMutableTransaction tx(wtx); --tx.nLockTime; // Just to change the hash :) - *static_cast<CTransaction*>(&wtx) = CTransaction(tx); + wtx.SetTx(MakeTransactionRef(std::move(tx))); } pwalletMain->AddToWallet(wtx); vpwtx.push_back(&pwalletMain->mapWallet[wtx.GetHash()]); @@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) { CMutableTransaction tx(wtx); --tx.nLockTime; // Just to change the hash :) - *static_cast<CTransaction*>(&wtx) = CTransaction(tx); + wtx.SetTx(MakeTransactionRef(std::move(tx))); } pwalletMain->AddToWallet(wtx); vpwtx.push_back(&pwalletMain->mapWallet[wtx.GetHash()]); |