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:
parent
dfc55f8421
commit
140b0cfca8
@ -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…
x
Reference in New Issue
Block a user