1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 16:34:29 +00:00

handge -geh correctly

This commit is contained in:
orignal 2017-03-26 18:13:26 -04:00
parent d3bd1a0e4d
commit 7b6ce735ba
2 changed files with 7 additions and 9 deletions

View File

@ -4829,6 +4829,7 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet)
{ {
static boost::thread_group* minerThreads = NULL; static boost::thread_group* minerThreads = NULL;
// TODO:
int nThreads = 1; //GetArg("-genproclimit", -1); int nThreads = 1; //GetArg("-genproclimit", -1);
if (nThreads < 0) if (nThreads < 0)
nThreads = boost::thread::hardware_concurrency(); nThreads = boost::thread::hardware_concurrency();
@ -4838,13 +4839,10 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet)
minerThreads->interrupt_all(); minerThreads->interrupt_all();
delete minerThreads; delete minerThreads;
minerThreads = NULL; minerThreads = NULL;
return; // TODO: temporary
} }
// TODO: if (nThreads == 0 || !fGenerate)
/*if (nThreads == 0 || !fGenerate) return;
return;*/
minerThreads = new boost::thread_group(); minerThreads = new boost::thread_group();
for (int i = 0; i < nThreads; i++) for (int i = 0; i < nThreads; i++)

View File

@ -205,12 +205,12 @@ int main(int argc, char *argv[])
// Application identification (must be set before OptionsModel is initialized, // Application identification (must be set before OptionsModel is initialized,
// as it is used to locate QSettings) // as it is used to locate QSettings)
QApplication::setOrganizationName("Anoncoin"); QApplication::setOrganizationName("Unioncoin");
QApplication::setOrganizationDomain("anoncoin.net"); QApplication::setOrganizationDomain("unioncoin.net");
if(GetBoolArg("-testnet")) // Separate UI settings for testnet if(GetBoolArg("-testnet")) // Separate UI settings for testnet
QApplication::setApplicationName("Anoncoin-Qt-testnet"); QApplication::setApplicationName("Unioncoin-Qt-testnet");
else else
QApplication::setApplicationName("Anoncoin-Qt"); QApplication::setApplicationName("Unioncoin-Qt");
// ... then GUI settings: // ... then GUI settings:
OptionsModel optionsModel; OptionsModel optionsModel;