aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-12-10 15:27:53 +0100
committerJaSK <temp@temp.temp>2014-07-02 15:48:38 +0200
commit2935b211033610d7ef0deef9bf1b344a5bac029f (patch)
treec3bb65c391305f127ac89c970eafc9de93ae9d52 /src/wallet.cpp
parentc8988460a2865b99ee96da6799d37ac6ccb79d4d (diff)
qt: Hide unspendable outputs in coin control
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 3d679f4c56..40ace9c40b 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));
}