Skip to content

Commit 01ad0fe

Browse files
committed
comment
1 parent 2854b03 commit 01ad0fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • consensus/src/simplex/actors/voter

consensus/src/simplex/actors/voter/actor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,9 @@ impl<
859859
let view = round.view();
860860
debug!(%view, "attempting certification");
861861
let result = if self.state.proposed_locally(view) {
862+
// The proposer should always be willing to certify their own
863+
// proposals. Reaching out to the automaton is unnecessary and
864+
// creates duplicate work.
862865
Either::Left(ready(Ok(true)))
863866
} else {
864867
let receiver = self.automaton.certify(round, proposal.payload).await;

0 commit comments

Comments
 (0)