Fix setgenerate and genproclimit

This commit is contained in:
blackjok3r
2018-12-17 00:18:15 +08:00
parent 1da3ef7280
commit 2d725d91fc
4 changed files with 75 additions and 64 deletions

View File

@@ -344,7 +344,10 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
{
VERUS_MINTBLOCKS = 1;
fGenerate = GetBoolArg("-gen", false);
nGenProcLimit = KOMODO_MININGTHREADS;
if ( ASSETCHAINS_STAKED == 0 )
nGenProcLimit = KOMODO_MININGTHREADS;
else
KOMODO_MININGTHREADS = nGenProcLimit;
}
else if (!fGenerate)
{