X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=349bbdffc27f833fe964fbc10b8e5ce3105f11c9;hp=3c28c0a38971f445109605bf15a3b6c2ecee9e2a;hb=2c37da26ee5dde9e7c41d7f891a36e3081dc1e66;hpb=c0e8991ed1b482d0dab75f86e415fc63d1104d68 diff --git a/src/wallet.cpp b/src/wallet.cpp index 3c28c0a..349bbdf 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1451,16 +1451,8 @@ uint64 CWallet::GetStakeWeight(const CKeyStore& keystore, enum StakeWeightMode m // this change increases active coins participating the hash and helps // to secure the network when proof-of-stake difficulty is low // - if(fTestNet || (STAKEWEIGHT_SWITCH_TIME < nTime)) - { - // New rule since 01 Jan 2014: Maximum TimeWeight is 90 days. - nTimeWeight = min((int64)GetTime() - nTime - nStakeMinAge, (int64)nStakeMaxAge); - } - else - { - // Current rule: Maximum TimeWeight is 60 days. - nTimeWeight = min((int64)GetTime() - nTime, (int64)nStakeMaxAge) - nStakeMinAge; - } + // Maximum TimeWeight is 90 days. + nTimeWeight = min((int64)GetTime() - nTime - nStakeMinAge, (int64)nStakeMaxAge); CBigNum bnCoinDayWeight = CBigNum(pcoin.first->vout[pcoin.second].nValue) * nTimeWeight / COIN / (24 * 60 * 60);