if ( pindex != 0 )
This commit is contained in:
@@ -4022,7 +4022,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
||||
if ( *ppindex == 0 )
|
||||
fprintf(stderr,"unexpected null *ppindex\n");
|
||||
#endif
|
||||
return true;
|
||||
if ( pindex != 0 )
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state,0))
|
||||
@@ -4044,7 +4045,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
||||
}
|
||||
if (!ContextualCheckBlockHeader(block, state, pindexPrev))
|
||||
{
|
||||
fprintf(stderr,"ContextualCheckBlockHeader failed\n");
|
||||
//fprintf(stderr,"ContextualCheckBlockHeader failed\n");
|
||||
return false;
|
||||
}
|
||||
if (pindex == NULL)
|
||||
|
||||
Reference in New Issue
Block a user