diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-29 13:16:21 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-09 10:12:55 +0000 |
commit | a813ab50fef929040d2a5feb56ed54161abce1a9 (patch) | |
tree | a80c105f45a0ea28028607e80263185dbebaf072 /src/wallet/api/wallet_manager.h | |
parent | Merge pull request #1542 (diff) | |
download | monero-a813ab50fef929040d2a5feb56ed54161abce1a9.tar.xz |
wallet2_api: add solo mining API
Diffstat (limited to 'src/wallet/api/wallet_manager.h')
-rw-r--r-- | src/wallet/api/wallet_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/api/wallet_manager.h b/src/wallet/api/wallet_manager.h index 01752f69b..ca9570254 100644 --- a/src/wallet/api/wallet_manager.h +++ b/src/wallet/api/wallet_manager.h @@ -54,6 +54,9 @@ public: double miningHashRate() const; void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const; uint64_t blockTarget() const; + bool isMining() const; + bool startMining(const std::string &address, uint32_t threads = 1); + bool stopMining(); std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const; private: |