void MiningPage::startPressed() { initThreads = ui->threadsBox->value(); if (minerActive == false) { saveSettings(); if (getMiningType() == ClientModel::SoloMining) minerStarted(); else startPoolMining(); } else { if (getMiningType() == ClientModel::SoloMining) minerFinished(); else stopPoolMining(); } }
void MiningPage::startPressed() { int nPercentHashPow = ui->horizontalSlider->value(); mapArgs["-usepercenthashpower"] = QString("%1").arg(nPercentHashPow).toUtf8().data(); if (minerActive == false) { // Start mining saveSettings(); if (getMiningType() == ClientModel::SoloMining) minerStarted(); else startPoolMining(); } else { // Stop mining if (getMiningType() == ClientModel::SoloMining) minerFinished(); else stopPoolMining(); } }