From 9da05b840f9ce313e849ab3aa2b33d5c7f2ff7bb Mon Sep 17 00:00:00 2001 From: Antonenko Date: Mon, 3 Nov 2014 22:10:01 +0300 Subject: [PATCH] Switch to const interest --- src/main.cpp | 4 ++-- src/wallet.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ec975556..3036b4a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1154,12 +1154,12 @@ int64_t GetProofOfStakeInterestV3(int nHeight) double weight = GetPoSKernelPS(nHeight-1); uint64_t rate = MIN_COIN_YEAR_REWARD; - if (weight > 16384) + /*if (weight > 16384) { rate = std::max(MIN_COIN_YEAR_REWARD, std::min(static_cast(MIN_COIN_YEAR_REWARD * log(weight / 16384.0)), MAX_COIN_YEAR_REWARD)); - } + }*/ return rate; } diff --git a/src/wallet.cpp b/src/wallet.cpp index 6a414ba3..0ae0a424 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1739,7 +1739,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int if (nReward <= 0) return false; - nCredit += nReward*0.95; + nCredit += nReward; } // Set output amount