From cf364206de57b3a34bb055b602cb86427b18b151 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Thu, 2 Mar 2017 14:34:11 +0100 Subject: [PATCH] mining: make threads parameter optional --- src/libwalletqt/WalletManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libwalletqt/WalletManager.cpp b/src/libwalletqt/WalletManager.cpp index de3378d5..b6a736e1 100644 --- a/src/libwalletqt/WalletManager.cpp +++ b/src/libwalletqt/WalletManager.cpp @@ -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); }