This commit is contained in:
jl777
2016-11-14 08:39:41 -03:00
parent 63b2d35e70
commit c246f72f13
3 changed files with 5 additions and 3 deletions

View File

@@ -155,6 +155,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
}
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit))
return error("CheckProofOfWork(): nBits below minimum work");
if ( height > 70000 )
bnTarget /= 64;
// Check proof of work matches claimed amount
if ( UintToArith256(hash) > bnTarget )
{