This commit is contained in:
jl777
2016-10-20 13:04:55 -03:00
parent f68be92251
commit a75fbeae8e

View File

@@ -129,7 +129,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
if (UintToArith256(hash) <= bnTarget) // accept normal diff
return true;
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
} //else bnTarget /= 8;
} else bnTarget /= 8;
}
// Check range
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit))