This commit is contained in:
jl777
2018-07-11 10:09:58 -11:00
parent 9e1a6d76c4
commit ae2d90651b

View File

@@ -1351,7 +1351,7 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he
{
//bnTarget = ((ave * arith_uint256(goalperc)) + (easydiff * arith_uint256(percPoS))) / arith_uint256(percPoS + goalperc);
bnTarget = (ave * arith_uint256(percPoS * percPoS * percPoS)) / arith_uint256(goalperc * goalperc);
if ( bnTarget > easydiff )
if ( bnTarget > easydiff || bnTarget < ave )
bnTarget = easydiff;
if ( 1 )
{