Cheops Release Fix 1
Version 3.4.2.0. - reverted previous idiocy
This commit is contained in:
+2
-5
@@ -296,11 +296,8 @@ bool CheckStakeKernelHash(unsigned int nBits, const CBlock& blockFrom, unsigned
|
||||
// v0.3 protocol kernel hash weight starts from 0 at the min age
|
||||
// this change increases active coins participating the hash and helps
|
||||
// to secure the network when proof-of-stake difficulty is low
|
||||
|
||||
// triangles: fixed timeweight calculation
|
||||
//old: int64 nTimeWeight = min((int64)nTimeTx - txPrev.nTime, (int64)nStakeMaxAge) - nStakeMinAge;
|
||||
int64 nTimeWeight = min((int64)nTimeTx - txPrev.nTime - nStakeMinAge, (int64)nStakeMaxAge);
|
||||
CBigNum bnCoinDayWeight = CBigNum(nValueIn) * nTimeWeight / COIN / (24 * 60 * 60);
|
||||
int64 nTimeWeight = min((int64)nTimeTx - txPrev.nTime, (int64)nStakeMaxAge) - nStakeMinAge;
|
||||
CBigNum bnCoinDayWeight = CBigNum(nValueIn) * nTimeWeight / COIN / (24 * 60 * 6);
|
||||
|
||||
// printf(">>> CheckStakeKernelHash: nTimeWeight = %"PRI64d"\n", nTimeWeight);
|
||||
// Calculate hash
|
||||
|
||||
Reference in New Issue
Block a user