Test
This commit is contained in:
@@ -1170,10 +1170,10 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he
|
|||||||
} else return(target);
|
} else return(target);
|
||||||
if ( percPoS < goalperc ) // increase PoW diff -> lower bnTarget
|
if ( percPoS < goalperc ) // increase PoW diff -> lower bnTarget
|
||||||
{
|
{
|
||||||
if ( height > 1120 )
|
if ( height > 1200 )
|
||||||
{
|
{
|
||||||
factor = arith_uint256(goalperc) / arith_uint256(percPoS + goalperc);
|
factor = arith_uint256(goalperc * goalperc) / arith_uint256((percPoS + goalperc) * (percPoS + goalperc));
|
||||||
bnTarget = (ave * factor * factor);
|
bnTarget = (ave * factor);
|
||||||
}
|
}
|
||||||
else bnTarget = (ave * arith_uint256(goalperc)) / arith_uint256(percPoS + goalperc);
|
else bnTarget = (ave * arith_uint256(goalperc)) / arith_uint256(percPoS + goalperc);
|
||||||
if ( 1 )
|
if ( 1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user