Skip to content

Commit

Permalink
Fix extended voting (#3900)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszrzasik authored Nov 20, 2024
1 parent d216c5b commit dde1524
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/task-impls/src/quorum_vote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES> + 'static, V: Versions> Handl
)
.await;

let is_vote_leaf_extended = self.consensus.read().await.is_leaf_extended(leaf.commit());
if let Err(e) = submit_vote::<TYPES, I, V>(
self.sender.clone(),
Arc::clone(&self.quorum_membership),
Expand All @@ -236,7 +235,7 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES> + 'static, V: Versions> Handl
Arc::clone(&self.storage),
leaf,
vid_share,
is_vote_leaf_extended,
false,
)
.await
{
Expand Down Expand Up @@ -678,6 +677,11 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> QuorumVoteTaskS
)
.await;

let is_vote_leaf_extended = self
.consensus
.read()
.await
.is_leaf_extended(proposed_leaf.commit());
if let Err(e) = submit_vote::<TYPES, I, V>(
event_sender.clone(),
Arc::clone(&self.quorum_membership),
Expand All @@ -689,7 +693,7 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> QuorumVoteTaskS
Arc::clone(&self.storage),
proposed_leaf,
updated_vid,
false,
is_vote_leaf_extended,
)
.await
{
Expand Down

0 comments on commit dde1524

Please sign in to comment.