fix
authorAlex <alex@Mac-Alex.local>
Sat, 11 May 2013 01:21:28 +0000 (05:21 +0400)
committerAlex <alex@Mac-Alex.local>
Sat, 11 May 2013 01:21:28 +0000 (05:21 +0400)
src/wallet.cpp

index e84920f..c30943b 100644 (file)
@@ -1013,6 +1013,9 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed) const
             if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0)
                 continue;
 
+            if(pcoin->IsCoinStake() && pcoin->GetBlocksToMaturity() > 0)
+                continue;
+
             for (unsigned int i = 0; i < pcoin->vout.size(); i++)
                 if (!(pcoin->IsSpent(i)) && IsMine(pcoin->vout[i]) && pcoin->vout[i].nValue > 0)
                     vCoins.push_back(COutput(pcoin, i, pcoin->GetDepthInMainChain()));