Browse Source

handge -geh correctly

pull/5/head
orignal 8 years ago
parent
commit
7b6ce735ba
  1. 8
      src/main.cpp
  2. 8
      src/qt/unioncoin.cpp

8
src/main.cpp

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

8
src/qt/unioncoin.cpp

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

Loading…
Cancel
Save