diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-07-19 14:15:16 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-07-19 14:15:16 -0500 |
commit | 702a41034d908fa60fbc44792f54b3cdc9f9af2e (patch) | |
tree | e6724304f92d08b86e375b91807d73fac5e81a36 /src/simplewallet | |
parent | Merge pull request #4087 (diff) | |
parent | node_rpc_proxy: factor a few RPC calls using get_info (diff) | |
download | monero-702a41034d908fa60fbc44792f54b3cdc9f9af2e.tar.xz |
Merge pull request #4088
8c4db68 node_rpc_proxy: factor a few RPC calls using get_info (moneromooo-monero)
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 7ce51a1f6..193b62571 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4292,12 +4292,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) |