From 4717fc4768dfbd537dab844994ce8da06492b62b Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 8 Apr 2019 14:13:37 -0400 Subject: ... --- src/consensus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2