Skip to content

Commit

Permalink
Fall through instead of dropping the proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 29, 2023
1 parent f5d1afa commit 7f52bd4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Code/driver/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,12 @@ where
}

// L28
if polka_previous {
if self.round_state.step == Step::Propose && polka_previous {
// TODO: Check proposal vr is equal to threshold vr
if self.round_state.step == Step::Propose {
return self.apply_event(
proposal.round(),
RoundEvent::ProposalAndPolkaPrevious(proposal),
);
} else {
// XXX: Do we abort here or do we fall through?
return Ok(None);
}
return self.apply_event(
proposal.round(),
RoundEvent::ProposalAndPolkaPrevious(proposal),
);
}

// TODO - Caller needs to store the proposal (valid or not) as the quorum (polka or commits) may be met later
Expand Down

0 comments on commit 7f52bd4

Please sign in to comment.