Skip to content

Commit

Permalink
Fix for merge hotstuff_integration -> persist_hs_safety_liveness_stat…
Browse files Browse the repository at this point in the history
…e_WIP

- hs_proposal_message::get_height --> hs_proposal_message::get_key fix
  • Loading branch information
fcecin committed Nov 18, 2023
1 parent 14a898e commit 749cf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/hotstuff/qc_chain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ namespace eosio::hotstuff {
seen_votes_store_type::nth_index<0>::type::iterator itr = _seen_votes_store.get<by_seen_votes_proposal_id>().find( p->proposal_id );
bool propagate = false;
if (itr == _seen_votes_store.get<by_seen_votes_proposal_id>().end()) {
seen_votes sv = { p->proposal_id, p->get_height(), { vote.finalizer_key } };
seen_votes sv = { p->proposal_id, p->get_key(), { vote.finalizer_key } };
_seen_votes_store.insert(sv);
propagate = true;
} else {
Expand Down

0 comments on commit 749cf41

Please sign in to comment.