diff options
| author | Russell Yanofsky <[email protected]> | 2017-02-23 11:20:16 -0500 |
|---|---|---|
| committer | NicolasDorier <[email protected]> | 2017-03-10 05:11:10 +0000 |
| commit | af61d9f78bec62ff3688d88409a53df9ff5bc591 (patch) | |
| tree | 4d808ec76cd86bbeaeab7473a6527b9d8aeacfaf /src/bench/coin_selection.cpp | |
| parent | Merge #9768: [qa] Add logging to test_framework.py (diff) | |
| download | discoin-af61d9f78bec62ff3688d88409a53df9ff5bc591.tar.xz discoin-af61d9f78bec62ff3688d88409a53df9ff5bc591.zip | |
Add COutput::fSafe member for safe handling of unconfirmed outputs
This exposes a value computed in CWallet::AvailableCoins so it can used for
other things, like inclusion in listunspent output.
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 29fbd3463..06882f151 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -20,7 +20,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<CO CWalletTx* wtx = new CWalletTx(&wallet, MakeTransactionRef(std::move(tx))); int nAge = 6 * 24; - COutput output(wtx, nInput, nAge, true, true); + COutput output(wtx, nInput, nAge, true /* spendable */, true /* solvable */, true /* safe */); vCoins.push_back(output); } |