diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-16 22:46:53 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-16 22:46:53 +0200 |
commit | c8ce4217cf2a8a3e91a5619c5a9d0e9bf877ce60 (patch) | |
tree | 2caf83a6b2e0c4f9ebee4163d4818f39b143f7b4 /src/wallet/node_rpc_proxy.h | |
parent | Merge pull request #5446 (diff) | |
parent | wallet: new --offline option (diff) | |
download | monero-c8ce4217cf2a8a3e91a5619c5a9d0e9bf877ce60.tar.xz |
Merge pull request #5445
b18f0b10 wallet: new --offline option (moneromooo-monero)
Diffstat (limited to 'src/wallet/node_rpc_proxy.h')
-rw-r--r-- | src/wallet/node_rpc_proxy.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/node_rpc_proxy.h b/src/wallet/node_rpc_proxy.h index 3630aec08..3b75c8b94 100644 --- a/src/wallet/node_rpc_proxy.h +++ b/src/wallet/node_rpc_proxy.h @@ -39,9 +39,10 @@ namespace tools class NodeRPCProxy { public: - NodeRPCProxy(epee::net_utils::http::http_simple_client &http_client, boost::mutex &mutex); + NodeRPCProxy(epee::net_utils::http::http_simple_client &http_client, boost::recursive_mutex &mutex); void invalidate(); + void set_offline(bool offline) { m_offline = offline; } boost::optional<std::string> get_rpc_version(uint32_t &version) const; boost::optional<std::string> get_height(uint64_t &height) const; @@ -56,7 +57,8 @@ private: boost::optional<std::string> get_info() const; epee::net_utils::http::http_simple_client &m_http_client; - boost::mutex &m_daemon_rpc_mutex; + boost::recursive_mutex &m_daemon_rpc_mutex; + bool m_offline; mutable uint64_t m_height; mutable uint64_t m_earliest_height[256]; |