From 68cf8a7e66abc57b9ddb0270738e83c2ba11c84e Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 Apr 2018 12:21:46 +0300 Subject: [PATCH] Fix --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 345a6d880..f44e12d88 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3986,7 +3986,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc *ppindex = pindex; if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK ) { - if ( IsInitialBlockDownload() == 0 && (tipindex= chainActive.Tip()) != 0 &&KOMODO_LONGESTCHAIN > height+200 && KOMODO_NEWBLOCKS == 0 ) + if ( IsInitialBlockDownload() == 0 && (tipindex= chainActive.Tip()) != 0 &&KOMODO_LONGESTCHAIN > pindex->nHeight+200 && KOMODO_NEWBLOCKS == 0 ) { pindex->nStatus &= ~(BLOCK_FAILED_MASK); fprintf(stderr,"give ht.%d another chance\n",pindex->nHeight);