This commit is contained in:
jl777
2018-04-19 17:35:25 +03:00
parent 861319af5e
commit ff556351ad

View File

@@ -1170,10 +1170,10 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he
} else return(target);
if ( percPoS < goalperc ) // increase PoW diff -> lower bnTarget
{
if ( height > 1120 )
if ( height > 1200 )
{
factor = arith_uint256(goalperc) / arith_uint256(percPoS + goalperc);
bnTarget = (ave * factor * factor);
factor = arith_uint256(goalperc * goalperc) / arith_uint256((percPoS + goalperc) * (percPoS + goalperc));
bnTarget = (ave * factor);
}
else bnTarget = (ave * arith_uint256(goalperc)) / arith_uint256(percPoS + goalperc);
if ( 1 )