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,8 +3748,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 )
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate"); return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
if ( *ppindex == 0 ) if ( pindex != 0 )
fprintf(stderr,"acceptblockheader returns null ptr\n");
return true; return true;
} }