reenable accidentally reverted change

This commit is contained in:
jc 2018-03-02 16:12:19 -05:00
parent 891622875b
commit 447865e818
No known key found for this signature in database
GPG Key ID: E87FC0C8A375F3CF
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();