Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es committed Oct 16, 2024
1 parent b5a6d30 commit f6c3d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/types/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ impl<TYPES: NodeType> Consensus<TYPES> {
/// Can return an error when the provided high_qc is not newer than the existing entry.
pub fn update_high_qc(&mut self, high_qc: QuorumCertificate<TYPES>) -> Result<()> {
ensure!(
high_qc.view_number > self.high_qc.view_number,
high_qc.view_number > self.high_qc.view_number || high_qc == self.high_qc,
"High QC with an equal or higher view exists."
);
debug!("Updating high QC");
Expand Down

0 comments on commit f6c3d19

Please sign in to comment.