From 310bb0a1b932db69a065d16d0558991589975c50 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 04:20:21 +0200 Subject: [PATCH] Test --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bd80a4eae..261694762 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2890,12 +2890,11 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight); while ( chainActive.Tip()->nHeight > KOMODO_REWIND ) { - InvalidateBlock(state,chainActive.Tip()); - /*if ( !DisconnectTip(state) ) + if ( !DisconnectTip(state) ) { InvalidateBlock(state,chainActive.Tip()); return false; - }*/ + } } fprintf(stderr,"reached rewind.%d, best to do: ./komodo-cli stop\n",KOMODO_REWIND); sleep(60);