Merge pull request #6370

6ebac07 Remove ChainParams::DefaultMinerThreads (Wladimir J. van der Laan)
This commit is contained in:
Wladimir J. van der Laan
2015-07-10 17:12:09 +02:00
3 changed files with 2 additions and 13 deletions

View File

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