From 985907e4ec21c3844097fddb652bf67713db99c5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Apr 2018 16:36:54 +0300 Subject: [PATCH] Fix too strict --- src/komodo_bitcoind.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index f52c8b649..1f4bde79c 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1280,11 +1280,9 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height) //fprintf(stderr,"height.%d slowflag.%d possible.%d cmp.%d\n",height,slowflag,possible,bhash > bnTarget); if ( height == 0 && slowflag != 0 ) // we need to assume all prior height is in the block index { - if ( (pprev= mapBlockIndex[pblock->hashPrevBlock]) != 0 ) - height = pprev->nHeight + 1; - fprintf(stderr,"komodo_checkPOW slowflag.%d zeroheight -> calcht.%d \n",slowflag,height); - //if ( height == 0 ) - return(-1); + //if ( (pprev= mapBlockIndex[pblock->hashPrevBlock]) != 0 ) + // height = pprev->nHeight + 1; + return(0); } if ( (ASSETCHAINS_SYMBOL[0] != 0 || height > 792000) && bhash > bnTarget ) {