diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-29 10:54:38 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-29 10:54:38 +0000 |
| commit | fcd178ef334fb11614cd6c4e851b4ab34b96dde3 (patch) | |
| tree | d3998def2c4c30cba8dd5eb26a4daac29e6cdaa7 /src/wallet/api/wallet_manager.h | |
| parent | dbf2ab56c54b8be3d0f704f067c9bff79e90ed7e (diff) | |
| download | monzero-core-fcd178ef334fb11614cd6c4e851b4ab34b96dde3.tar.gz monzero-core-fcd178ef334fb11614cd6c4e851b4ab34b96dde3.tar.xz monzero-core-fcd178ef334fb11614cd6c4e851b4ab34b96dde3.zip | |
wallet_api: add a few daemon related getters
Blockchain height, version, Mining hash rate...
Diffstat (limited to 'src/wallet/api/wallet_manager.h')
| -rw-r--r-- | src/wallet/api/wallet_manager.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wallet/api/wallet_manager.h b/src/wallet/api/wallet_manager.h index 489abe764..d454548f8 100644 --- a/src/wallet/api/wallet_manager.h +++ b/src/wallet/api/wallet_manager.h @@ -45,12 +45,18 @@ public: bool walletExists(const std::string &path); std::vector<std::string> findWallets(const std::string &path); std::string errorString() const; - void setDaemonHost(const std::string &hostname); + void setDaemonAddress(const std::string &address); + bool connected(uint32_t *version) const; bool checkPayment(const std::string &address, const std::string &txid, const std::string &txkey, const std::string &daemon_address, uint64_t &received, uint64_t &height, std::string &error) const; + uint64_t blockchainHeight() const; + uint64_t blockchainTargetHeight() const; + uint64_t networkDifficulty() const; + double miningHashRate() const; private: WalletManagerImpl() {} friend struct WalletManagerFactory; + std::string m_daemonAddress; std::string m_errorString; }; |
