From dc0ac9c2526237b6004f14dda8b0c207f2a1716a Mon Sep 17 00:00:00 2001 From: Alexis Enston Date: Mon, 12 Oct 2020 14:08:35 +0100 Subject: [PATCH] fix next_seed_height regression in getblocktemplate rpc --- src/rpc/core_rpc_server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 45509374d..33153417b 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1669,6 +1669,13 @@ namespace cryptonote return false; } + uint64_t next_height; + crypto::rx_seedheights(height, &seed_height, &next_height); + if (next_height != seed_height) + next_seed_hash = m_core.get_block_id_by_height(next_height); + else + next_seed_hash = seed_hash; + if (extra_nonce.empty()) { reserved_offset = 0;