This commit is contained in:
jl777
2017-03-18 10:06:35 +02:00
parent 0364009ed9
commit 2e245d5b30

View File

@@ -2775,9 +2775,11 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
//if ( didinit++ == 0 ) //if ( didinit++ == 0 )
if ( chainActive.Tip()->nHeight == KOMODO_REWIND ) if ( chainActive.Tip()->nHeight == KOMODO_REWIND )
{ {
pindexMostWork = chainActive.Tip(); pindexOldTip = pindexMostWork = chainActive.Tip();
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);
return(false); pindexFork = chainActive.FindFork(pindexMostWork);
sleep(3);
//return(false);
} }
{ {
while (chainActive.Tip()->nHeight > KOMODO_REWIND ) while (chainActive.Tip()->nHeight > KOMODO_REWIND )