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
committed by Jack Grigg
parent da1357e6cc
commit 2854c4e366
3 changed files with 2 additions and 13 deletions

View File

@@ -748,13 +748,8 @@ void GenerateBitcoins(bool fGenerate, int nThreads)
{
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)
{