diff options
author | Alexis Enston <xn@outlook.com> | 2020-10-12 14:08:35 +0100 |
---|---|---|
committer | Alexis Enston <xn@outlook.com> | 2020-10-13 11:07:59 +0100 |
commit | b49f48962b611734aa258113270d29fa3ccdec4e (patch) | |
tree | b355c52b518bc66a450fccf327e4d9d185aad4a1 | |
parent | Merge pull request #6841 (diff) | |
download | monero-b49f48962b611734aa258113270d29fa3ccdec4e.tar.xz |
fix next_seed_height regression in getblocktemplate rpc
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index a50c70418..33c8a7055 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1661,6 +1661,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; |