diff options
author | Determinant <ted.sybil@gmail.com> | 2019-05-10 17:36:24 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-05-10 17:36:24 -0400 |
commit | 380f6411fe4889839d470a343ebd50bdf2205531 (patch) | |
tree | 73eea58939bc5b7bd2d15983838a96d64d20397e /include/hotstuff/liveness.h | |
parent | a32f1af24dbc7e5d3da51d174532eaa923cd4f26 (diff) |
minor changes
Diffstat (limited to 'include/hotstuff/liveness.h')
-rw-r--r-- | include/hotstuff/liveness.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/hotstuff/liveness.h b/include/hotstuff/liveness.h index f4027a2..03b375e 100644 --- a/include/hotstuff/liveness.h +++ b/include/hotstuff/liveness.h @@ -404,7 +404,7 @@ class PMStickyProposer: virtual public PaceMaker { role = FOLLOWER; proposer = new_proposer; last_proposed = nullptr; - hsc->set_neg_vote(false); + hsc->set_vote_disabled(false); timer.clear(); /* redirect all pending cmds to the new proposer */ while (!pending_beats.empty()) @@ -421,7 +421,7 @@ class PMStickyProposer: virtual public PaceMaker { role = PROPOSER; proposer = hsc->get_id(); last_proposed = nullptr; - hsc->set_neg_vote(true); + hsc->set_vote_disabled(true); timer = TimerEvent(ec, [this](TimerEvent &) { /* proposer unable to get a QC in time */ to_candidate(); @@ -436,7 +436,7 @@ class PMStickyProposer: virtual public PaceMaker { role = CANDIDATE; proposer = hsc->get_id(); last_proposed = nullptr; - hsc->set_neg_vote(false); + hsc->set_vote_disabled(false); timer = TimerEvent(ec, [this](TimerEvent &) { candidate_qc_timeout(); }); @@ -660,7 +660,7 @@ class PMRoundRobinProposer: virtual public PaceMaker { clear_promises(); role = FOLLOWER; last_proposed = nullptr; - hsc->set_neg_vote(false); + hsc->set_vote_disabled(false); timer.clear(); /* redirect all pending cmds to the new proposer */ while (!pending_beats.empty()) @@ -676,7 +676,7 @@ class PMRoundRobinProposer: virtual public PaceMaker { clear_promises(); role = PROPOSER; last_proposed = nullptr; - hsc->set_neg_vote(true); + hsc->set_vote_disabled(true); timer = TimerEvent(ec, [this](TimerEvent &) { /* proposer unable to get a QC in time */ to_candidate(); @@ -689,7 +689,7 @@ class PMRoundRobinProposer: virtual public PaceMaker { clear_promises(); role = CANDIDATE; last_proposed = nullptr; - hsc->set_neg_vote(false); + hsc->set_vote_disabled(false); timer = TimerEvent(ec, [this](TimerEvent &) { candidate_qc_timeout(); }); |