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/bench/coin_selection.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/bench/coin_selection.cpp')
| -rw-r--r-- | src/bench/coin_selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 7091ee3e1..32690fe48 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -19,7 +19,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, vector<COutput tx.nLockTime = nextLockTime++; // so all transactions get different hashes tx.vout.resize(nInput + 1); tx.vout[nInput].nValue = nValue; - CWalletTx* wtx = new CWalletTx(&wallet, tx); + CWalletTx* wtx = new CWalletTx(&wallet, MakeTransactionRef(std::move(tx))); int nAge = 6 * 24; COutput output(wtx, nInput, nAge, true, true); |