From: CryptoManiac Date: Sat, 26 Jul 2014 21:53:13 +0000 (+0400) Subject: Fix calculation of immature balance. X-Git-Tag: v0.4.4.6-nvc-update7~6^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=c91b5231b5d85d235fbc455e2158d9e3a63e6c20 Fix calculation of immature balance. --- diff --git a/src/wallet.h b/src/wallet.h index 3d07f57..96fe239 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -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;