Test
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -3746,15 +3746,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
|
|||||||
if (ppindex)
|
if (ppindex)
|
||||||
*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");
|
||||||
//komodo_reverify_blockcheck(state,pindex->nHeight,pindex);
|
#ifdef DEXcode
|
||||||
//if ( KOMODO_LONGESTCHAIN != 0 && pindex->nHeight > KOMODO_LONGESTCHAIN-100 )
|
|
||||||
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// pindex->nStatus &= ~BLOCK_FAILED_MASK;
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
if ( pindex != 0 && IsInitialBlockDownload() == 0 ) // jl777 debug test
|
if ( pindex != 0 && IsInitialBlockDownload() == 0 ) // jl777 debug test
|
||||||
{
|
{
|
||||||
if (!CheckBlockHeader(pindex->nHeight,pindex, block, state))
|
if (!CheckBlockHeader(pindex->nHeight,pindex, block, state))
|
||||||
@@ -3790,6 +3783,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
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user