1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-03-13 05:41:11 +00:00

configurable number of mining threads

This commit is contained in:
orignal 2017-03-31 14:53:15 -04:00
parent dfc55f8421
commit 140b0cfca8

View File

@ -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)
{ {