From 1e3c97ba6999ba6f82f4c94543e76ff8879a96be Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 18 Mar 2017 09:31:54 +0200 Subject: [PATCH] Test --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d8fb9f35e..209437dec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2775,7 +2775,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo //if ( didinit++ == 0 ) if ( chainActive.Tip()->nHeight == KOMODO_REWIND+1 ) { - fprintf(stderr,"reached rewind.%d, ./komodo-cli stop now\n",KOMODO_REWIND); + fprintf(stderr,"reached rewind.%d, best to do: ./komodo-cli stop\n",KOMODO_REWIND); sleep(3); return(false); } @@ -2784,7 +2784,10 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo { fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight); if ( !DisconnectTip(state) ) + { + InvalidateBlock(state,chainActive.Tip()) return false; + } } pindexOldTip = chainActive.Tip(); pindexFork = chainActive.FindFork(pindexMostWork);