Fix calculation of immature balance. 25/head
authorCryptoManiac <balthazar@yandex.ru>
Sat, 26 Jul 2014 21:53:13 +0000 (01:53 +0400)
committerCryptoManiac <balthazar@yandex.ru>
Sat, 26 Jul 2014 21:53:13 +0000 (01:53 +0400)
src/wallet.h

index 3d07f57..96fe239 100644 (file)
@@ -648,7 +648,7 @@ public:
 
     int64 GetImmatureCredit(bool fUseCache=true) const
     {
-        if ((IsCoinBase() || IsCoinStake()) && GetBlocksToMaturity() > 0 && IsInMainChain())
+        if (IsCoinBase() && GetBlocksToMaturity() > 0 && IsInMainChain())
         {
             if (fUseCache && fImmatureCreditCached)
                 return nImmatureCreditCached;
@@ -662,7 +662,7 @@ public:
 
     int64 GetImmatureWatchOnlyCredit(bool fUseCache=true) const
     {
-        if ((IsCoinBase() || IsCoinStake()) && GetBlocksToMaturity() > 0 && IsInMainChain())
+        if (IsCoinBase() && GetBlocksToMaturity() > 0 && IsInMainChain())
         {
             if (fUseCache && fImmatureWatchCreditCached)
                 return nImmatureWatchCreditCached;