From cfc41b3bdcc0f68187993252ddf8ffa0b3165b06 Mon Sep 17 00:00:00 2001 From: j-berman Date: Thu, 25 Sep 2025 16:18:22 -0700 Subject: [PATCH] Daemon RPC: fix on_getblockhash error return on too high height --- src/rpc/core_rpc_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index d0c91876f..c84746975 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1812,6 +1812,7 @@ namespace cryptonote { error_resp.code = CORE_RPC_ERROR_CODE_TOO_BIG_HEIGHT; error_resp.message = std::string("Requested block height: ") + std::to_string(h) + " greater than current top block height: " + std::to_string(m_core.get_current_blockchain_height() - 1); + return false; } res = string_tools::pod_to_hex(m_core.get_block_id_by_height(h)); return true;