From ec41006cadb21b4c423cd8e7d8a79f109ea3deaf Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 11 Mar 2018 13:07:43 +0000 Subject: [PATCH] node_rpc_proxy: fix target height caching --- src/wallet/node_rpc_proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/node_rpc_proxy.cpp b/src/wallet/node_rpc_proxy.cpp index a9562291e..f11ff9295 100644 --- a/src/wallet/node_rpc_proxy.cpp +++ b/src/wallet/node_rpc_proxy.cpp @@ -116,7 +116,7 @@ void NodeRPCProxy::set_height(uint64_t h) boost::optional NodeRPCProxy::get_target_height(uint64_t &height) const { const time_t now = time(NULL); - if (m_height == 0 || now >= m_height_time + 30) // re-cache every 30 seconds + if (m_target_height == 0 || now >= m_target_height_time + 30) // re-cache every 30 seconds { epee::json_rpc::request req_t = AUTO_VAL_INIT(req_t); epee::json_rpc::response resp_t = AUTO_VAL_INIT(resp_t);