aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-29 13:16:21 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-09 10:12:55 +0000
commita813ab50fef929040d2a5feb56ed54161abce1a9 (patch)
treea80c105f45a0ea28028607e80263185dbebaf072 /src/wallet/wallet2_api.h
parentMerge pull request #1542 (diff)
downloadmonero-a813ab50fef929040d2a5feb56ed54161abce1a9.tar.xz
wallet2_api: add solo mining API
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h9
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;
};