fix next_seed_height regression in getblocktemplate rpc

This commit is contained in:
Alexis Enston 2020-10-12 14:08:35 +01:00
parent 3cbb44a2fd
commit b49f48962b
1 changed files with 7 additions and 0 deletions

View File

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