Skip to content

Commit

Permalink
Fix failure to attach view change evidence (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es authored May 10, 2024
1 parent ffb0135 commit 9fbb21f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/task-impls/src/consensus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,11 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>> ConsensusTaskState<TYPES, I>
}

if let Some(cert) = &self.proposal_cert {
if !cert.is_valid_for_view(&view) {
self.proposal_cert = None;
info!("Failed to propose off SendPayloadCommitmentAndMetadata because we had view change evidence, but it was not current.");
return;
}
match cert {
ViewChangeEvidence::Timeout(tc) => {
if self.quorum_membership.get_leader(tc.get_view_number() + 1)
Expand Down

0 comments on commit 9fbb21f

Please sign in to comment.