Remove ChainParams::DefaultMinerThreads

No longer relevant after #5957. This hack existed because of another
hack where the numthreads parameter, on regtest, doubled as how many
blocks to generate.
This commit is contained in:
Wladimir J. van der Laan
2015-07-03 09:13:56 +02:00
parent d0a10c1959
commit 6ebac0782f
3 changed files with 2 additions and 13 deletions

View File

@@ -541,13 +541,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)
{