fix next_seed_height regression in getblocktemplate rpc

This commit is contained in:
Alexis Enston 2020-10-12 14:08:35 +01:00 committed by wowario
parent 2051c5f078
commit dc0ac9c252
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -1669,6 +1669,13 @@ namespace cryptonote
return false; 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()) if (extra_nonce.empty())
{ {
reserved_offset = 0; reserved_offset = 0;