Merge pull request #105 from jc23424/master

reenable accidentally reverted change
This commit is contained in:
CryptoJake22 2018-03-02 16:16:35 -05:00 committed by GitHub
commit b17be6fe6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -25,7 +25,12 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
{
int nHeight = pindexLast->nHeight + 1;
arith_uint256 proofOfWorkLimit = UintToArith256(params.powLimit);
arith_uint256 proofOfWorkLimit;
if(!isForkEnabled(nHeight))
proofOfWorkLimit = UintToArith256(uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
else
proofOfWorkLimit = UintToArith256(params.powLimit);
unsigned int nProofOfWorkLimit = proofOfWorkLimit.GetCompact();
unsigned int nProofOfWorkBomb = UintToArith256(uint256S("000000000000000000000000000000000000000000000000000000000000ffff")).GetCompact();