Add parentChainPowLimit, check in CheckBitcoinProof

This commit is contained in:
instagibbs 2016-06-09 13:23:11 -04:00 committed by Gregory Sanders
parent e30340a8d6
commit c87debb048
3 changed files with 9 additions and 1 deletions

View file

@ -46,7 +46,7 @@ bool CheckBitcoinProof(uint256 hash, unsigned int nBits)
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
// Check range
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(Params().GetConsensus().powLimit))
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(Params().GetConsensus().parentChainPowLimit))
return false;
// Check proof of work matches claimed amount