From f6c3d19eefee706a7609221b7cd96f707005122e Mon Sep 17 00:00:00 2001 From: ss-es <155648797+ss-es@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:21:19 -0400 Subject: [PATCH] fix --- crates/types/src/consensus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/types/src/consensus.rs b/crates/types/src/consensus.rs index a351a09b96..c24a25cc4d 100644 --- a/crates/types/src/consensus.rs +++ b/crates/types/src/consensus.rs @@ -645,7 +645,7 @@ impl Consensus { /// 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) -> 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");