Don't stake on null wallet call

This commit is contained in:
miketout
2018-10-14 00:01:16 -07:00
parent ec8a120b4d
commit e82ee7e3cc

View File

@@ -1925,7 +1925,7 @@ void static BitcoinMiner()
if ( nThreads == 0 && ASSETCHAINS_STAKED )
nThreads = 1;
if ((nThreads == 0 || !fGenerate) && VERUS_MINTBLOCKS == 0)
if ((nThreads == 0 || !fGenerate) && (VERUS_MINTBLOCKS == 0 || pwallet == NULL))
return;
minerThreads = new boost::thread_group();