This commit is contained in:
jl777
2018-04-16 12:21:46 +03:00
parent 5215d24e81
commit 68cf8a7e66

View File

@@ -3986,7 +3986,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
*ppindex = pindex; *ppindex = pindex;
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK ) 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); pindex->nStatus &= ~(BLOCK_FAILED_MASK);
fprintf(stderr,"give ht.%d another chance\n",pindex->nHeight); fprintf(stderr,"give ht.%d another chance\n",pindex->nHeight);