Merge pull request #6894

e49ad98 fix next_seed_height regression in getblocktemplate rpc (xnbya)
This commit is contained in:
luigi1111 2020-10-13 10:54:21 -05:00
commit 4d855fcca7
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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;