Skip to content

Commit

Permalink
consensus: fix code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Jul 22, 2024
1 parent 8fb7c1b commit 0084042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/src/execution_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl<'a, DB: Database, T: Operations + 'static> ExecutionCtx<'a, DB, T> {
let open_consensus_mode = self.last_step_running();

// When consensus is in open_consensus_mode then it keeps Ratification
// step running infinitely until either a valid block or
// step running indefinitely until either a valid block or
// emergency block is accepted
let timeout = if open_consensus_mode {
let dur = Duration::new(u32::MAX as u64, 0);
Expand All @@ -162,7 +162,7 @@ impl<'a, DB: Database, T: Operations + 'static> ExecutionCtx<'a, DB, T> {
if open_consensus_mode {
// In open consensus mode, consensus step is never
// terminated.
// The acceptor will cancel the consensus if the
// The acceptor will cancel the consensus if a
// block is accepted
continue;
}
Expand Down

0 comments on commit 0084042

Please sign in to comment.