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/wallet2_api.h | |
parent | Merge pull request #1542 (diff) | |
download | monero-a813ab50fef929040d2a5feb56ed54161abce1a9.tar.xz |
wallet2_api: add solo mining API
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index fcb4ef2e8..9ad8c41ca 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -571,6 +571,15 @@ struct WalletManager //! returns current block target virtual uint64_t blockTarget() const = 0; + //! returns true iff mining + virtual bool isMining() const = 0; + + //! starts mining with the set number of threads + virtual bool startMining(const std::string &address, uint32_t threads = 1) = 0; + + //! stops mining + virtual bool stopMining() = 0; + //! resolves an OpenAlias address to a monero address virtual std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const = 0; }; |