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)
{ {
static boost::thread_group* minerThreads = NULL; static boost::thread_group* minerThreads = NULL;
// TODO: int nThreads = GetArg("-genproclimit", 1);
int nThreads = 1; //GetArg("-genproclimit", -1); /* if (nThreads < 0)
if (nThreads < 0) nThreads = boost::thread::hardware_concurrency();*/
nThreads = boost::thread::hardware_concurrency();
if (minerThreads != NULL) if (minerThreads != NULL)
{ {

Loading…
Cancel
Save