From 3938336c6c420c11eeaf72cba78022f616ba725c Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 18 Mar 2017 10:45:40 +0200 Subject: [PATCH] Test --- src/init.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index e2df87ed1..d586108a4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1464,7 +1464,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) uiInterface.InitMessage(_("Activating best chain...")); // scan for better chains in the block chain database, that are not yet connected in the active best chain CValidationState state; - if (KOMODO_REWIND == 0 && !ActivateBestChain(state)) + if ( KOMODO_REWIND < 0 ) + { + KOMODO_REWIND = 0; + fprintf(stderr,"bypass ActivateBestChain\n"); + } + else if ( !ActivateBestChain(state)) strErrors << "Failed to connect best block"; std::vector vImportFiles;