Auto-reconsider block
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -4425,7 +4425,15 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
|
|||||||
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");
|
{
|
||||||
|
if ( ASSETCHAINS_CC == 0 )
|
||||||
|
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf(stderr,"reconsider block %s\n",hash.GetHex().c_str());
|
||||||
|
pindex->nStatus &= ~BLOCK_FAILED_MASK;
|
||||||
|
}
|
||||||
|
}
|
||||||
/*if ( pindex != 0 && hash == komodo_requestedhash )
|
/*if ( pindex != 0 && hash == komodo_requestedhash )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"AddToBlockIndex A komodo_requestedhash %s\n",komodo_requestedhash.ToString().c_str());
|
fprintf(stderr,"AddToBlockIndex A komodo_requestedhash %s\n",komodo_requestedhash.ToString().c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user