diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-12-04 22:17:48 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-12-04 22:17:48 +0200 |
commit | 836c7483661ed108e76e770fb6f52d8a2b7cc39e (patch) | |
tree | b9a0efed63ee0b819ed293e49b539cc16824072c /src/wallet/wallet2_api.h | |
parent | Merge pull request #1386 (diff) | |
parent | wallet_api: add a few daemon related getters (diff) | |
download | monero-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.h | 17 |
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; }; |