diff options
author | tobtoht <thotbot@protonmail.com> | 2022-06-24 21:58:07 +0200 |
---|---|---|
committer | tobtoht <thotbot@protonmail.com> | 2022-06-24 21:58:07 +0200 |
commit | 50ccc7e72646f2ef2d502d0115fdeb84b17b7ad0 (patch) | |
tree | ed353ee2a596f90c5bb9877124927c426aade204 /src | |
parent | Merge pull request #8340 (diff) | |
download | monero-50ccc7e72646f2ef2d502d0115fdeb84b17b7ad0.tar.xz |
wallet2: remove obsolete rpc version check
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 0b2a6c0f5..5800217fa 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3622,32 +3622,7 @@ bool wallet2::refresh(bool trusted_daemon, uint64_t & blocks_fetched, bool& rece //---------------------------------------------------------------------------------------------------- bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector<uint64_t> &distribution) { - uint32_t rpc_version; - boost::optional<std::string> result = m_node_rpc_proxy.get_rpc_version(rpc_version); - // no error - if (!!result) - { - // empty string -> not connection - THROW_WALLET_EXCEPTION_IF(result->empty(), tools::error::no_connection_to_daemon, "getversion"); - THROW_WALLET_EXCEPTION_IF(*result == CORE_RPC_STATUS_BUSY, tools::error::daemon_busy, "getversion"); - if (*result != CORE_RPC_STATUS_OK) - { - MDEBUG("Cannot determine daemon RPC version, not requesting rct distribution"); - return false; - } - } - else - { - if (rpc_version >= MAKE_CORE_RPC_VERSION(1, 19)) - { - MDEBUG("Daemon is recent enough, requesting rct distribution"); - } - else - { - MDEBUG("Daemon is too old, not requesting rct distribution"); - return false; - } - } + MDEBUG("Requesting rct distribution"); cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::request req = AUTO_VAL_INIT(req); cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::response res = AUTO_VAL_INIT(res); |