Skip to content

Commit

Permalink
qs f+1
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxiangzl committed Jun 10, 2024
1 parent 50a05d4 commit 74f7aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/src/quorum_store/proof_coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ impl IncrementalProofState {
}

fn ready(&self, validator_verifier: &ValidatorVerifier) -> bool {
if self.aggregated_voting_power >= validator_verifier.quorum_voting_power() {
if self.aggregated_voting_power >= validator_verifier.total_voting_power() - validator_verifier.quorum_voting_power() + 1 {
let recheck =
validator_verifier.check_voting_power(self.aggregated_signature.keys(), true);
validator_verifier.check_voting_power(self.aggregated_signature.keys(), false);
if recheck.is_err() {
error!("Unexpected discrepancy: aggregated_voting_power is {}, while rechecking we get {:?}", self.aggregated_voting_power, recheck);
}
Expand Down

0 comments on commit 74f7aa5

Please sign in to comment.