diff --git a/src/init.cpp b/src/init.cpp index 210b4f6f..4e3419f9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1533,7 +1533,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // --- end disabled --- // Generate coins in the background - ThreadScryptMiner(pwalletMain); + if(GetBoolArg("-staking", false)) + { + ThreadScryptMiner(pwalletMain); + } // ********************************************************* Step 12: finished