aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/node_rpc_proxy.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-09-15 16:23:56 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-09-15 16:23:56 -0500
commit0be63cffa80a66a2b76c77025b2637edb47ac571 (patch)
tree75db44fd75f9a7e037ed2325c91e5f0087258991 /src/wallet/node_rpc_proxy.h
parentaf4f97bf66282bb2af25b5577d9bcba4d00b00b0 (diff)
parent864a78ee5f5db4619c093e0dfb26bd03735d9fb1 (diff)
downloadmonzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.tar.gz
monzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.tar.xz
monzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.zip
Merge pull request #8544
864a78e wallet2: check wallet compatibility with daemon's hard fork version (j-berman)
Diffstat (limited to 'src/wallet/node_rpc_proxy.h')
-rw-r--r--src/wallet/node_rpc_proxy.h4
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;
};
}