mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #6895
b49f489
fix next_seed_height regression in getblocktemplate rpc (xnbya)
This commit is contained in:
commit
7539d4ac74
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue