aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-04-08 14:13:37 -0400
committerDeterminant <[email protected]>2019-04-08 14:13:37 -0400
commit4717fc4768dfbd537dab844994ce8da06492b62b (patch)
tree705a451cec79c8a9a26e9fd6f45861d4d965d95f
parent1d9cc0beba389b7ac133c4d95eb264cf15abbc41 (diff)
...
-rw-r--r--src/consensus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consensus.cpp b/src/consensus.cpp
index d801de8..84d9e6d 100644
--- a/src/consensus.cpp
+++ b/src/consensus.cpp
@@ -224,7 +224,7 @@ void HotStuffCore::on_receive_vote(const Vote &vote) {
}
/*** end HotStuff protocol logic ***/
void HotStuffCore::on_init(uint32_t nfaulty) {
- config.nmajority = 2 * nfaulty + 1;
+ config.nmajority = config.nreplicas - nfaulty;
b0->qc = create_quorum_cert(b0->get_hash());
b0->qc->compute();
b0->self_qc = b0->qc->clone();