diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-10-13 10:54:21 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-10-13 10:54:21 -0500 |
commit | 4d855fcca7db286484c256d85619c051a55592ad (patch) | |
tree | 0f146b6d26c0bc246bb6476c1a428a79171dfeea /src/rpc | |
parent | Merge pull request #6893 (diff) | |
parent | fix next_seed_height regression in getblocktemplate rpc (diff) | |
download | monero-4d855fcca7db286484c256d85619c051a55592ad.tar.xz |
e49ad98 fix next_seed_height regression in getblocktemplate rpc (xnbya)
Diffstat (limited to 'src/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 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; |