From ff556351ad5ce3e94c2bc235da9f09b97c41bb48 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Apr 2018 17:35:25 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 095941657..be4c94484 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -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 )