aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-13 13:24:45 -0500
committerRiccardo Spagni <ric@spagni.net>2017-01-13 13:24:45 -0500
commit71c7577370d447f7aab7cda4afcdb3be6d7e5c53 (patch)
treedcf2a4870334fd2966d307e0ec61997fb6a77baf /src/wallet/wallet2_api.h
parentMerge pull request #1492 (diff)
parentwallet2_api: add solo mining API (diff)
downloadmonero-71c7577370d447f7aab7cda4afcdb3be6d7e5c53.tar.xz
Merge pull request #1513
a813ab50 wallet2_api: add solo mining API (moneromooo-monero)
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;
};