Auto reconsider

This commit is contained in:
jl777
2019-04-12 01:25:01 -11:00
parent 9686cdd6cd
commit 27083abb20

View File

@@ -5333,6 +5333,15 @@ bool AcceptBlock(int32_t *futureblockp,CBlock& block, CValidationState& state, C
fprintf(stderr,"saplinght.%d tipht.%d blockht.%d cmp.%d\n",saplinght,(int32_t)tmpptr->GetHeight(),pindex->GetHeight(),pindex->GetHeight() < 0 || (pindex->GetHeight() >= saplinght && pindex->GetHeight() < saplinght+50000) || (tmpptr->GetHeight() > saplinght-720 && tmpptr->GetHeight() < saplinght+720));
if ( pindex->GetHeight() < 0 || (pindex->GetHeight() >= saplinght && pindex->GetHeight() < saplinght+50000) || (tmpptr->GetHeight() > saplinght-720 && tmpptr->GetHeight() < saplinght+720) )
*futureblockp = 1;
if ( ASSETCHAINS_CBOPRET != 0 )
{
CValidationState tmpstate; CBlockIndex *tmpindex;
if ( (tmpindex=komodo_chainactive(tmpptr->GetHeight())) != 0 )
{
fprintf(stderr,"reconsider height.%d\n",(int32_t)tmpptr->GetHeight());
ReconsiderBlock(tmpstate,tmpindex);
}
}
}
if ( *futureblockp == 0 )
{