Merge pull request #1095 from blackjok3rtt/FSM

Fix setgenerate and proclimit.
This commit is contained in:
jl777
2018-12-16 06:02:05 -11:00
committed by GitHub
4 changed files with 73 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)
{