Merge pull request #518

cf36420 mining: make threads parameter optional (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-03-03 16:27:04 +02:00
commit afbfbeaa49
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -264,6 +264,8 @@ bool WalletManager::isMining() const
bool WalletManager::startMining(const QString &address, quint32 threads)
{
if(threads == 0)
threads = 1;
return m_pimpl->startMining(address.toStdString(), threads);
}