Browse Source

configurable number of mining threads

pull/5/head
orignal 7 years ago
parent
commit
140b0cfca8
  1. 7
      src/main.cpp

7
src/main.cpp

@ -4809,10 +4809,9 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet) @@ -4809,10 +4809,9 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet)
{
static boost::thread_group* minerThreads = NULL;
// TODO:
int nThreads = 1; //GetArg("-genproclimit", -1);
if (nThreads < 0)
nThreads = boost::thread::hardware_concurrency();
int nThreads = GetArg("-genproclimit", 1);
/* if (nThreads < 0)
nThreads = boost::thread::hardware_concurrency();*/
if (minerThreads != NULL)
{

Loading…
Cancel
Save