Handle 100% PoS for -ac_target = < 100

This commit is contained in:
jl777
2018-07-11 08:57:03 -11:00
parent ce2b6b330c
commit 43ff67f5fc

View File

@@ -1313,7 +1313,7 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he
ave = (sum / arith_uint256(n));
if ( ave > target )
ave = target;
} else return(target);
} else ave = easydiff; //else return(target);
if ( percPoS < goalperc ) // increase PoW diff -> lower bnTarget
{
bnTarget = (ave * arith_uint256(percPoS * percPoS)) / arith_uint256(goalperc * goalperc * goalperc);