This commit is contained in:
jl777
2017-03-24 05:12:32 +02:00
parent 7d1067177e
commit 6ec8416f90

View File

@@ -2888,7 +2888,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
if ( KOMODO_REWIND != 0 ) if ( KOMODO_REWIND != 0 )
{ {
fprintf(stderr,"rewind start ht.%d\n",chainActive.Tip()->nHeight); fprintf(stderr,"rewind start ht.%d\n",chainActive.Tip()->nHeight);
while ( chainActive.Tip()->nHeight > KOMODO_REWIND ) while ( KOMODO_REWIND > 0 && chainActive.Tip()->nHeight > KOMODO_REWIND )
{ {
if ( !DisconnectTip(state) ) if ( !DisconnectTip(state) )
{ {
@@ -2897,7 +2897,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
} }
} }
fprintf(stderr,"reached rewind.%d, best to do: ./komodo-cli stop\n",KOMODO_REWIND); fprintf(stderr,"reached rewind.%d, best to do: ./komodo-cli stop\n",KOMODO_REWIND);
sleep(3600); sleep(60);
KOMODO_REWIND = 0; KOMODO_REWIND = 0;
return(true); return(true);
} }