diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-02-23 11:20:16 -0500 |
---|---|---|
committer | NicolasDorier <nicolas.dorier@gmail.com> | 2017-03-10 05:11:10 +0000 |
commit | af61d9f78bec62ff3688d88409a53df9ff5bc591 (patch) | |
tree | 4d808ec76cd86bbeaeab7473a6527b9d8aeacfaf /src/bench | |
parent | 8910b4717e5bb946ee6988f7fe9fd461f53a5935 (diff) |
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')
-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 29fbd34631..06882f1514 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); } |