aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-10-13 10:54:21 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-10-13 10:54:21 -0500
commit4d855fcca7db286484c256d85619c051a55592ad (patch)
tree0f146b6d26c0bc246bb6476c1a428a79171dfeea /src/rpc
parentMerge pull request #6893 (diff)
parentfix next_seed_height regression in getblocktemplate rpc (diff)
downloadmonero-4d855fcca7db286484c256d85619c051a55592ad.tar.xz
Merge pull request #6894v0.17.1.0v0.17.1.0
e49ad98 fix next_seed_height regression in getblocktemplate rpc (xnbya)
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 382b5815f..ca904ae84 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;