@ -339,14 +339,12 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
//if (nGenProcLimit == 0)
// fGenerate = false;
}
if ( ASSETCHAINS_LWMAPOS ! = 0 )
{
if ( fGenerate & & ! nGenProcLimit )
{
VERUS_MINTBLOCKS = 1 ;
fGenerate = GetBoolArg ( " -gen " , false ) ;
if ( ASSETCHAINS_STAKED = = 0 )
nGenProcLimit = KOMODO_MININGTHREADS ;
else
KOMODO_MININGTHREADS = nGenProcLimit ;
}
else if ( ! fGenerate )
@ -355,6 +353,11 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
KOMODO_MININGTHREADS = 0 ;
}
else KOMODO_MININGTHREADS = ( int32_t ) nGenProcLimit ;
}
else
{
KOMODO_MININGTHREADS = ( int32_t ) nGenProcLimit ;
}
mapArgs [ " -gen " ] = ( fGenerate ? " 1 " : " 0 " ) ;
mapArgs [ " -genproclimit " ] = itostr ( KOMODO_MININGTHREADS ) ;