From 76a77528ab4f7c59aced474aa890a482491bb2e2 Mon Sep 17 00:00:00 2001 From: miketout Date: Sun, 28 Oct 2018 13:40:09 -0700 Subject: [PATCH] Allow mint=1 to be a VRSC.conf parameter --- src/init.cpp | 4 +++- src/komodo_utils.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) 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 )