diff --git a/src/init.cpp b/src/init.cpp index dd8a6580d..fd890f5c9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -194,7 +194,7 @@ void Shutdown() /// for example if the data directory was found to be locked. /// Be sure that anything that writes files or flushes caches only does this if the respective /// module was initialized. - RenameThread("zcash-shutoff"); + RenameThread("verus-shutoff"); mempool.AddTransactionsUpdated(1); StopHTTPRPC(); @@ -1871,6 +1871,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) #ifdef ENABLE_MINING // Generate coins in the background #ifdef ENABLE_WALLET + VERUS_MINTBLOCKS = GetBoolArg("-mint", false); + if (pwalletMain || !GetArg("-mineraddress", "").empty()) GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain, GetArg("-genproclimit", 0)); #else diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 6d145ea4f..827b19812 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1661,8 +1661,6 @@ void komodo_args(char *argv0) } else KOMODO_MININGTHREADS = 0; - VERUS_MINTBLOCKS = GetBoolArg("-mint", false); - VERUS_CHEATCATCHER = GetArg("-cheatcatcher", ""); if ( (KOMODO_EXCHANGEWALLET= GetBoolArg("-exchange", false)) != 0 )