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/wallet2_api.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/wallet2_api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 2e1d95b58..a7162afcb 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -562,6 +562,12 @@ struct WalletManager //! returns current mining hash rate (0 if not mining) virtual double miningHashRate() const = 0; + //! returns current hard fork info + virtual void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const = 0; + + //! returns current block target + virtual uint64_t blockTarget() const = 0; + //! resolves an OpenAlias address to a monero address virtual std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const = 0; }; |