try
This commit is contained in:
@@ -332,7 +332,7 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
|
|||||||
if (params.size() > 0)
|
if (params.size() > 0)
|
||||||
fGenerate = params[0].get_bool();
|
fGenerate = params[0].get_bool();
|
||||||
|
|
||||||
int nGenProcLimit = GetArg("-genproclimit", -1);;
|
int nGenProcLimit = GetArg("-genproclimit", 0);;
|
||||||
if (params.size() > 1)
|
if (params.size() > 1)
|
||||||
{
|
{
|
||||||
nGenProcLimit = params[1].get_int();
|
nGenProcLimit = params[1].get_int();
|
||||||
@@ -356,6 +356,8 @@ UniValue setgenerate(const UniValue& params, bool fHelp)
|
|||||||
mapArgs["-gen"] = (fGenerate ? "1" : "0");
|
mapArgs["-gen"] = (fGenerate ? "1" : "0");
|
||||||
mapArgs ["-genproclimit"] = itostr(KOMODO_MININGTHREADS);
|
mapArgs ["-genproclimit"] = itostr(KOMODO_MININGTHREADS);
|
||||||
|
|
||||||
|
fprintf(stderr, "miningthreads.%i generate.%i\n",KOMODO_MININGTHREADS,(fGenerate ? 1 : 0);
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
GenerateBitcoins(fGenerate, pwalletMain, nGenProcLimit);
|
GenerateBitcoins(fGenerate, pwalletMain, nGenProcLimit);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user