From 20f1df3472a44423814998e94ce4037b39bef6f6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 30 Jul 2019 04:59:35 -1100 Subject: [PATCH] Fix --- 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 c3dbf2d85..95f609483 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1425,10 +1425,10 @@ arith_uint256 komodo_adaptivepow_target(int32_t height,arith_uint256 bnTarget,ui tipdiff = (nTime - tipindex->nTime); if ( tipdiff > 13*ASSETCHAINS_BLOCKTIME ) diff = 13*ASSETCHAINS_BLOCKTIME; - if ( diff > 20 * ASSETCHAINS_BLOCKTIME ) + if ( diff > 13 * ASSETCHAINS_BLOCKTIME ) { - mult = diff - 19 * ASSETCHAINS_BLOCKTIME; - mult = (mult / ASSETCHAINS_BLOCKTIME) * ASSETCHAINS_BLOCKTIME + ASSETCHAINS_BLOCKTIME / 3; + mult = diff - 12 * ASSETCHAINS_BLOCKTIME; + mult = (mult / ASSETCHAINS_BLOCKTIME) * ASSETCHAINS_BLOCKTIME + ASSETCHAINS_BLOCKTIME / 2; origtarget = bnTarget; bnTarget = bnTarget * arith_uint256(mult * mult); easy.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);