This commit is contained in:
jl777
2019-04-12 01:29:07 -11:00
parent 27083abb20
commit e9e6e18f05

View File

@@ -5336,9 +5336,9 @@ bool AcceptBlock(int32_t *futureblockp,CBlock& block, CValidationState& state, C
if ( ASSETCHAINS_CBOPRET != 0 ) if ( ASSETCHAINS_CBOPRET != 0 )
{ {
CValidationState tmpstate; CBlockIndex *tmpindex; CValidationState tmpstate; CBlockIndex *tmpindex;
if ( (tmpindex=komodo_chainactive(tmpptr->GetHeight())) != 0 ) if ( (tmpindex=komodo_chainactive(tmpptr->GetHeight()-1)) != 0 )
{ {
fprintf(stderr,"reconsider height.%d\n",(int32_t)tmpptr->GetHeight()); fprintf(stderr,"reconsider height.%d\n",(int32_t)tmpptr->GetHeight()-1);
ReconsiderBlock(tmpstate,tmpindex); ReconsiderBlock(tmpstate,tmpindex);
} }
} }