From 3087cbc55296c2150cb55874fdbb54d4ad901d76 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Aug 2019 20:37:54 -1100 Subject: [PATCH] Fix getmininginfo --- src/pow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index 412af3276..1a68aab5c 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -388,7 +388,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead if ( ASSETCHAINS_ADAPTIVEPOW > 0 ) { bnTarget = arith_uint256().SetCompact(nbits); - if ( height > (int32_t)(sizeof(ct)/sizeof(*ct)) ) + if ( height > (int32_t)(sizeof(ct)/sizeof(*ct)) && pblock != 0 && tipdiff > 0 ) { easy.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); if ( pblock != 0 )