This commit is contained in:
jl777
2018-04-24 19:28:42 +03:00
parent 06ce10a9a7
commit 85f1853e35

View File

@@ -4012,11 +4012,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
if (ppindex)
*ppindex = pindex;
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )
{
if (!CheckBlockHeader(futureblockp,*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state,0))
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
else pindex->nStatus &= ~BLOCK_FAILED_MASK;
}
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
/*if ( pindex != 0 && hash == komodo_requestedhash )
{
fprintf(stderr,"AddToBlockIndex A komodo_requestedhash %s\n",komodo_requestedhash.ToString().c_str());