aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-11 13:07:43 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-11 13:11:49 +0000
commitec41006cadb21b4c423cd8e7d8a79f109ea3deaf (patch)
tree82fd18c85329b94f6c88989340407e9dabad0596 /src
parentMerge pull request #3368 (diff)
downloadmonero-ec41006cadb21b4c423cd8e7d8a79f109ea3deaf.tar.xz
node_rpc_proxy: fix target height caching
Diffstat (limited to 'src')
-rw-r--r--src/wallet/node_rpc_proxy.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string> 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<cryptonote::COMMAND_RPC_GET_INFO::request> req_t = AUTO_VAL_INIT(req_t);
epee::json_rpc::response<cryptonote::COMMAND_RPC_GET_INFO::response, std::string> resp_t = AUTO_VAL_INIT(resp_t);