aboutsummaryrefslogtreecommitdiff
path: root/src/consensus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/consensus.cpp')
-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();