diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-05-26 21:34:44 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-05-26 21:34:44 +0100 |
| commit | 0a182576d0e07550e21bbd9aeea6ef1e192ebccc (patch) | |
| tree | 727db0b357f0753481185996e6d3e0e822c4c6f2 | |
| parent | 391c918d87fa1fa549b37a365232d896af42c2d6 (diff) | |
| download | monzero-core-0a182576d0e07550e21bbd9aeea6ef1e192ebccc.tar.gz monzero-core-0a182576d0e07550e21bbd9aeea6ef1e192ebccc.tar.xz monzero-core-0a182576d0e07550e21bbd9aeea6ef1e192ebccc.zip | |
node_rpc_proxy: fix earliest fork height query for unknown forks
| -rw-r--r-- | src/wallet/node_rpc_proxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/node_rpc_proxy.cpp b/src/wallet/node_rpc_proxy.cpp index 03e1bbd98..1143a89d7 100644 --- a/src/wallet/node_rpc_proxy.cpp +++ b/src/wallet/node_rpc_proxy.cpp @@ -127,7 +127,7 @@ boost::optional<std::string> NodeRPCProxy::get_earliest_height(uint8_t version, CHECK_AND_ASSERT_MES(r, std::string(), "Failed to connect to daemon"); CHECK_AND_ASSERT_MES(resp_t.result.status != CORE_RPC_STATUS_BUSY, resp_t.result.status, "Failed to connect to daemon"); CHECK_AND_ASSERT_MES(resp_t.result.status == CORE_RPC_STATUS_OK, resp_t.result.status, "Failed to get hard fork status"); - m_earliest_height[version] = resp_t.result.earliest_height; + m_earliest_height[version] = resp_t.result.enabled ? resp_t.result.earliest_height : std::numeric_limits<uint64_t>::max(); } earliest_height = m_earliest_height[version]; |
