diff options
author | Alexis Enston <xn@outlook.com> | 2020-10-12 14:08:35 +0100 |
---|---|---|
committer | Alexis Enston <xn@outlook.com> | 2020-10-12 14:08:35 +0100 |
commit | e49ad98a9b658851d23ee972b32ebf789f50cefd (patch) | |
tree | da6395648bfa35c6b47eaf88725906fe09d026aa /src | |
parent | Merge pull request #6845 (diff) | |
download | monero-e49ad98a9b658851d23ee972b32ebf789f50cefd.tar.xz |
fix next_seed_height regression in getblocktemplate rpc
Diffstat (limited to 'src')
-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; |