diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-09-15 00:35:03 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-09-15 00:35:03 -0500 |
commit | c9cfa251833856d76d5e206a4546e7fe3f71e43e (patch) | |
tree | e75d633de4dc10c3c99645e7803adf695940db53 /src/wallet/node_rpc_proxy.h | |
parent | Merge pull request #8551 (diff) | |
parent | wallet2: check wallet compatibility with daemon's hard fork version (diff) | |
download | monero-c9cfa251833856d76d5e206a4546e7fe3f71e43e.tar.xz |
Merge pull request #8556
b8271ab wallet2: check wallet compatibility with daemon's hard fork version (j-berman)
Diffstat (limited to '')
-rw-r--r-- | src/wallet/node_rpc_proxy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/node_rpc_proxy.h b/src/wallet/node_rpc_proxy.h index 07675cdb0..e320565ac 100644 --- a/src/wallet/node_rpc_proxy.h +++ b/src/wallet/node_rpc_proxy.h @@ -48,7 +48,7 @@ public: void invalidate(); void set_offline(bool offline) { m_offline = offline; } - boost::optional<std::string> get_rpc_version(uint32_t &version); + boost::optional<std::string> get_rpc_version(uint32_t &rpc_version, std::vector<std::pair<uint8_t, uint64_t>> &daemon_hard_forks, uint64_t &height, uint64_t &target_height); boost::optional<std::string> get_height(uint64_t &height); void set_height(uint64_t h); boost::optional<std::string> get_target_height(uint64_t &height); @@ -103,6 +103,8 @@ private: crypto::hash m_rpc_payment_next_seed_hash; uint32_t m_rpc_payment_cookie; time_t m_height_time; + time_t m_target_height_time; + std::vector<std::pair<uint8_t, uint64_t>> m_daemon_hard_forks; }; } |