mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 00:14:20 +00:00
handge -geh correctly
This commit is contained in:
parent
d3bd1a0e4d
commit
7b6ce735ba
@ -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)
|
||||
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++)
|
||||
|
@ -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…
x
Reference in New Issue
Block a user