diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-30 22:06:09 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-02 17:59:44 +0100 |
commit | 8c4db68ff71537759aac5dca50d5d8d1c6032d37 (patch) | |
tree | d6b5c3abfad688b72500b0de7f6f48d761eb362a /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #4067 (diff) | |
download | monero-8c4db68ff71537759aac5dca50d5d8d1c6032d37.tar.xz |
node_rpc_proxy: factor a few RPC calls using get_info
Takes advantage of caching
Diffstat (limited to '')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 0b2d072d6..08357ec88 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4277,12 +4277,7 @@ uint64_t simple_wallet::get_daemon_blockchain_height(std::string& err) { throw std::runtime_error("simple_wallet null wallet"); } - - COMMAND_RPC_GET_HEIGHT::request req; - COMMAND_RPC_GET_HEIGHT::response res = boost::value_initialized<COMMAND_RPC_GET_HEIGHT::response>(); - bool r = m_wallet->invoke_http_json("/getheight", req, res); - err = interpret_rpc_response(r, res.status); - return res.height; + return m_wallet->get_daemon_blockchain_height(err); } //---------------------------------------------------------------------------------------------------- bool simple_wallet::show_blockchain_height(const std::vector<std::string>& args) |