We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2854b03 commit 01ad0feCopy full SHA for 01ad0fe
1 file changed
consensus/src/simplex/actors/voter/actor.rs
@@ -859,6 +859,9 @@ impl<
859
let view = round.view();
860
debug!(%view, "attempting certification");
861
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.
865
Either::Left(ready(Ok(true)))
866
} else {
867
let receiver = self.automaton.certify(round, proposal.payload).await;
0 commit comments