Skip to content

Commit

Permalink
Merge pull request #6894
Browse files Browse the repository at this point in the history
e49ad98 fix next_seed_height regression in getblocktemplate rpc (xnbya)
  • Loading branch information
luigi1111 committed Oct 13, 2020
2 parents 8ae0110 + e49ad98 commit 4d855fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rpc/core_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d855fc

Please sign in to comment.