Don't stake on null wallet call
This commit is contained in:
@@ -1925,7 +1925,7 @@ void static BitcoinMiner()
|
|||||||
if ( nThreads == 0 && ASSETCHAINS_STAKED )
|
if ( nThreads == 0 && ASSETCHAINS_STAKED )
|
||||||
nThreads = 1;
|
nThreads = 1;
|
||||||
|
|
||||||
if ((nThreads == 0 || !fGenerate) && VERUS_MINTBLOCKS == 0)
|
if ((nThreads == 0 || !fGenerate) && (VERUS_MINTBLOCKS == 0 || pwallet == NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
minerThreads = new boost::thread_group();
|
minerThreads = new boost::thread_group();
|
||||||
|
|||||||
Reference in New Issue
Block a user