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;