From 140b0cfca83db28d59f90428980cc81e59b31fee Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 31 Mar 2017 14:53:15 -0400 Subject: [PATCH] configurable number of mining threads --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f88f9bd..5658b53 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) {