aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-04 22:17:48 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-04 22:17:48 +0200
commit836c7483661ed108e76e770fb6f52d8a2b7cc39e (patch)
treeb9a0efed63ee0b819ed293e49b539cc16824072c /src/wallet/wallet2_api.h
parentMerge pull request #1386 (diff)
parentwallet_api: add a few daemon related getters (diff)
downloadmonero-836c7483661ed108e76e770fb6f52d8a2b7cc39e.tar.xz
Merge pull request #1388
fcd178ef wallet_api: add a few daemon related getters (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index cc6c5a337..60907b436 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -487,6 +487,23 @@ struct WalletManager
//! returns verbose error string regarding last error;
virtual std::string errorString() const = 0;
+ //! set the daemon address (hostname and port)
+ virtual void setDaemonAddress(const std::string &address) = 0;
+
+ //! returns whether the daemon can be reached, and its version number
+ virtual bool connected(uint32_t *version = NULL) const = 0;
+
+ //! returns current blockchain height
+ virtual uint64_t blockchainHeight() const = 0;
+
+ //! returns current blockchain target height
+ virtual uint64_t blockchainTargetHeight() const = 0;
+
+ //! returns current network difficulty
+ virtual uint64_t networkDifficulty() const = 0;
+
+ //! returns current mining hash rate (0 if not mining)
+ virtual double miningHashRate() const = 0;
};