diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-03-02 14:09:04 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-03-02 14:09:04 +0100 |
commit | db1c7d80b18e844206b8205a2eb60fbf60824662 (patch) | |
tree | cfd1b0ceece5f476cdba551be35f3541ffa66d16 /src/wallet/api/wallet_manager.cpp | |
parent | Merge pull request #1798 (diff) | |
download | monero-db1c7d80b18e844206b8205a2eb60fbf60824662.tar.xz |
wallet api: add missing mining options
Diffstat (limited to 'src/wallet/api/wallet_manager.cpp')
-rw-r--r-- | src/wallet/api/wallet_manager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 359b57349..ea2a66275 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -417,13 +417,15 @@ bool WalletManagerImpl::isMining() const return mres.active; } -bool WalletManagerImpl::startMining(const std::string &address, uint32_t threads) +bool WalletManagerImpl::startMining(const std::string &address, uint32_t threads, bool background_mining, bool ignore_battery) { cryptonote::COMMAND_RPC_START_MINING::request mreq; cryptonote::COMMAND_RPC_START_MINING::response mres; mreq.miner_address = address; mreq.threads_count = threads; + mreq.ignore_battery = ignore_battery; + mreq.do_background_mining = background_mining; if (!connect_and_invoke(m_daemonAddress, "/start_mining", mreq, mres)) return false; |