aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet_manager.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-25 12:31:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-25 12:31:50 +0000
commitc0a0fcaff004f8984c4778d56a82b0833e8105fe (patch)
tree03ea3517164e39be9b828dfef4bd5a6763bffe3c /src/wallet/api/wallet_manager.h
parentMerge pull request #1483 (diff)
downloadmonero-c0a0fcaff004f8984c4778d56a82b0833e8105fe.tar.xz
wallet2_api: some new APIs to access daemon state
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet_manager.h4
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: