Deal with missing prev

This commit is contained in:
jl777
2018-04-16 10:30:46 +03:00
parent 2a32e55a31
commit 7101b35b2d

View File

@@ -3748,9 +3748,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
*ppindex = pindex;
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
if ( *ppindex == 0 )
fprintf(stderr,"acceptblockheader returns null ptr\n");
return true;
if ( pindex != 0 )
return true;
}
if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state,0))