From 2e245d5b305bec08e2005fb94114f39eba85b131 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 18 Mar 2017 10:06:35 +0200 Subject: [PATCH] Test --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 65a641cec..174893a1a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2775,9 +2775,11 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo //if ( didinit++ == 0 ) 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); - return(false); + pindexFork = chainActive.FindFork(pindexMostWork); + sleep(3); + //return(false); } { while (chainActive.Tip()->nHeight > KOMODO_REWIND )