aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/liveness.h
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2018-08-03 16:58:55 -0400
committerDeterminant <tederminant@gmail.com>2018-08-03 16:58:55 -0400
commit745cb7a88baec540386f57edac7c84db889d63eb (patch)
tree4ac7a2f23859f73719ab7ae748a27cd94644e017 /include/hotstuff/liveness.h
parent7d5b607f5e4efc4ab12a5cce49bd8198d8d03fe6 (diff)
add pace maker option
Diffstat (limited to 'include/hotstuff/liveness.h')
-rw-r--r--include/hotstuff/liveness.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/hotstuff/liveness.h b/include/hotstuff/liveness.h
index c87a242..c3d7d73 100644
--- a/include/hotstuff/liveness.h
+++ b/include/hotstuff/liveness.h
@@ -166,7 +166,7 @@ class PaceMakerDummyFixed: public PaceMakerDummy {
* sees such new QC, if the QC is given by itself, it becomes the proposer,
* otherwise yields to the creator of the QC as a follower.
*/
-class PMStickyProposer: public PMWaitQC {
+class PMStickyProposer: virtual public PaceMaker {
enum {
PROPOSER,
FOLLOWER,
@@ -340,7 +340,7 @@ class PMStickyProposer: public PMWaitQC {
public:
void init(HotStuffCore *hsc) override {
- PMWaitQC::init(hsc);
+ PaceMaker::init(hsc);
to_candidate();
}
@@ -370,6 +370,11 @@ class PMStickyProposer: public PMWaitQC {
}
};
+struct PaceMakerSticky: public PMAllParents, public PMStickyProposer {
+ PaceMakerSticky(int32_t parent_limit):
+ PMAllParents(parent_limit), PMStickyProposer() {}
+};
+
}
#endif