preparations for background mining

requires #1827
This commit is contained in:
Jaquee
2017-03-02 15:44:37 +01:00
parent 988e299290
commit 223f09dc94
5 changed files with 50 additions and 5 deletions

View File

@@ -262,11 +262,11 @@ bool WalletManager::isMining() const
return m_pimpl->isMining();
}
bool WalletManager::startMining(const QString &address, quint32 threads)
bool WalletManager::startMining(const QString &address, quint32 threads, bool backgroundMining, bool ignoreBattery)
{
if(threads == 0)
threads = 1;
return m_pimpl->startMining(address.toStdString(), threads);
return m_pimpl->startMining(address.toStdString(), threads, backgroundMining, ignoreBattery);
}
bool WalletManager::stopMining()

View File

@@ -114,7 +114,7 @@ public:
Q_INVOKABLE double miningHashRate() const;
Q_INVOKABLE bool isMining() const;
Q_INVOKABLE bool startMining(const QString &address, quint32 threads);
Q_INVOKABLE bool startMining(const QString &address, quint32 threads, bool backgroundMining, bool ignoreBattery);
Q_INVOKABLE bool stopMining();
// QML missing such functionality, implementing these helpers here