From c91b5231b5d85d235fbc455e2158d9e3a63e6c20 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 27 Jul 2014 01:53:13 +0400 Subject: [PATCH] Fix calculation of immature balance. --- src/wallet.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.1