Skip to content

Commit

Permalink
Don't include current pulse quorum before HF16
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerman committed Oct 11, 2020
1 parent 26744cd commit cecabb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/core_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2744,9 +2744,9 @@ namespace cryptonote { namespace rpc {
else height--;
}

if (add_curr_pulse)
if (uint8_t hf_version; add_curr_pulse
&& (hf_version = m_core.get_hard_fork_version(curr_height)) >= network_version_16_pulse)
{
uint8_t hf_version = m_core.get_hard_fork_version(curr_height);
auto entropy = service_nodes::get_pulse_entropy_for_next_block(m_core.get_blockchain_storage().get_db());
auto& sn_list = m_core.get_service_node_list();
auto quorum = generate_pulse_quorum(m_core.get_nettype(), sn_list.get_block_leader().key, hf_version, sn_list.active_service_nodes_infos(), entropy, 0);
Expand Down

0 comments on commit cecabb0

Please sign in to comment.