aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.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/wallet2_api.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/wallet2_api.h6
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;
};