From d4da197214160e64ea72c60b1cc1c22a7d7688ad Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Apr 2018 17:31:51 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 41e3fbfd5..7886576d4 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1170,8 +1170,12 @@ arith_uint256 komodo_PoWtarget(int32_t *percPoSp,arith_uint256 target,int32_t he } else return(target); if ( percPoS < goalperc ) // increase PoW diff -> lower bnTarget { - factor = arith_uint256(goalperc)) / arith_uint256(percPoS + goalperc); - bnTarget = (ave * factor * factor); + if ( height < 1120 ) + { + factor = arith_uint256(goalperc) / arith_uint256(percPoS + goalperc); + bnTarget = (ave * factor * factor); + } + else bnTarget = (ave * arith_uint256(goalperc)) / arith_uint256(percPoS + goalperc); if ( 1 ) { for (i=31; i>=24; i--)