Skip to content

Commit

Permalink
move DAC cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Nov 10, 2023
1 parent 301dcc3 commit ef2f2c4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions crates/task-impls/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,13 +650,6 @@ where
))
.await;

self.quorum_exchange
.network()
.inject_consensus_info(ConsensusIntentEvent::CancelPollForDAC(
*proposal.data.view_number,
))
.await;

let view = proposal.data.get_view_number();
if view < self.cur_view {
debug!("Proposal is from an older view {:?}", proposal.data.clone());
Expand Down Expand Up @@ -1180,8 +1173,13 @@ where
}
HotShotEvent::DACRecv(cert) => {
debug!("DAC Recved for view ! {}", *cert.view_number);

let view = cert.view_number;

self.quorum_exchange
.network()
.inject_consensus_info(ConsensusIntentEvent::CancelPollForDAC(*view))
.await;

self.da_certs.insert(view, cert);

if self.vote_if_able().await {
Expand Down

0 comments on commit ef2f2c4

Please sign in to comment.