diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-10 15:27:53 +0100 |
|---|---|---|
| committer | JaSK <[email protected]> | 2014-07-02 15:48:38 +0200 |
| commit | 2935b211033610d7ef0deef9bf1b344a5bac029f (patch) | |
| tree | c3bb65c391305f127ac89c970eafc9de93ae9d52 /src/wallet.cpp | |
| parent | Add support for watch-only addresses (diff) | |
| download | discoin-2935b211033610d7ef0deef9bf1b344a5bac029f.tar.xz discoin-2935b211033610d7ef0deef9bf1b344a5bac029f.zip | |
qt: Hide unspendable outputs in coin control
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 3d679f4c5..40ace9c40 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1259,6 +1259,8 @@ bool CWallet::SelectCoins(int64_t nTargetValue, set<pair<const CWalletTx*,unsign { BOOST_FOREACH(const COutput& out, vCoins) { + if(!out.fSpendable) + continue; nValueRet += out.tx->vout[out.i].nValue; setCoinsRet.insert(make_pair(out.tx, out.i)); } |