try to add PoS% to staking loop, to adjust staking difficulty

This commit is contained in:
blackjok3r
2019-01-22 14:39:29 +08:00
parent 2c3247e8f1
commit 8324e606cd
4 changed files with 135 additions and 106 deletions

View File

@@ -134,6 +134,8 @@ unsigned int lwmaCalculateNextWorkRequired(const CBlockIndex* pindexLast, const
bnLimit = UintToArith256(params.powAlternate);
unsigned int nProofOfWorkLimit = bnLimit.GetCompact();
printf("PoWLimit: %u\n", nProofOfWorkLimit);
// Find the first block in the averaging interval as we total the linearly weighted average
const CBlockIndex* pindexFirst = pindexLast;