aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-10 17:12:09 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-07-10 17:12:40 +0200
commitfac21df5f00d1d84d9c1c251d273f2e8070877ec (patch)
tree545037c5bee3009c42a97e54d1c2090c5acfe3ea /src/miner.cpp
parentc52e8b300a7a5c65f2a1c2e52a8129280de2c301 (diff)
parent6ebac0782f9201e86d507fe7fff71f2c35680682 (diff)
Merge pull request #6370
6ebac07 Remove ChainParams::DefaultMinerThreads (Wladimir J. van der Laan)
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index bdb85c8c79..5e575f45f1 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -542,13 +542,8 @@ void GenerateBitcoins(bool fGenerate, int nThreads, const CChainParams& chainpar
{
static boost::thread_group* minerThreads = NULL;
- if (nThreads < 0) {
- // In regtest threads defaults to 1
- if (Params().DefaultMinerThreads())
- nThreads = Params().DefaultMinerThreads();
- else
- nThreads = GetNumCores();
- }
+ if (nThreads < 0)
+ nThreads = GetNumCores();
if (minerThreads != NULL)
{