diff options
author | j-berman <justinberman@protonmail.com> | 2022-08-26 16:13:19 -0700 |
---|---|---|
committer | j-berman <justinberman@protonmail.com> | 2022-09-12 21:23:08 -0600 |
commit | 864a78ee5f5db4619c093e0dfb26bd03735d9fb1 (patch) | |
tree | 75db44fd75f9a7e037ed2325c91e5f0087258991 /src/wallet/node_rpc_proxy.h | |
parent | Merge pull request #8555 (diff) | |
download | monero-864a78ee5f5db4619c093e0dfb26bd03735d9fb1.tar.xz |
wallet2: check wallet compatibility with daemon's hard fork version
Diffstat (limited to 'src/wallet/node_rpc_proxy.h')
-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; }; } |