if ( pindex != 0 )

This commit is contained in:
jl777
2018-04-16 11:30:11 +03:00
parent b95368bf87
commit 7a1b1fc4ff

View File

@@ -3785,6 +3785,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
if ( *ppindex == 0 ) if ( *ppindex == 0 )
fprintf(stderr,"unexpected null *ppindex\n"); fprintf(stderr,"unexpected null *ppindex\n");
#endif #endif
if ( pindex != 0 )
return true; return true;
} }
@@ -3807,7 +3808,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
} }
if (!ContextualCheckBlockHeader(block, state, pindexPrev)) if (!ContextualCheckBlockHeader(block, state, pindexPrev))
{ {
fprintf(stderr,"ContextualCheckBlockHeader failed\n"); //fprintf(stderr,"ContextualCheckBlockHeader failed\n");
return false; return false;
} }
if (pindex == NULL) if (pindex == NULL)