diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-25 12:31:50 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-25 12:31:50 +0000 |
commit | c0a0fcaff004f8984c4778d56a82b0833e8105fe (patch) | |
tree | 03ea3517164e39be9b828dfef4bd5a6763bffe3c /src/wallet/api/wallet_manager.h | |
parent | Merge pull request #1483 (diff) | |
download | monero-c0a0fcaff004f8984c4778d56a82b0833e8105fe.tar.xz |
wallet2_api: some new APIs to access daemon state
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet_manager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/api/wallet_manager.h b/src/wallet/api/wallet_manager.h index 214afc3fa..01752f69b 100644 --- a/src/wallet/api/wallet_manager.h +++ b/src/wallet/api/wallet_manager.h @@ -46,12 +46,14 @@ public: std::vector<std::string> findWallets(const std::string &path); std::string errorString() const; void setDaemonAddress(const std::string &address); - bool connected(uint32_t *version) const; + bool connected(uint32_t *version = NULL) 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; + void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const; + uint64_t blockTarget() const; std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const; private: |