From eec6d47a80661de13775bc38bdbb0df89b41cd03 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Wed, 27 Dec 2017 18:48:35 +0100 Subject: [PATCH] don't broadcast advance vote immediately if locked --- substrate/candidate-agreement/src/bft/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/substrate/candidate-agreement/src/bft/mod.rs b/substrate/candidate-agreement/src/bft/mod.rs index 940a0a9e21..c82e739abc 100644 --- a/substrate/candidate-agreement/src/bft/mod.rs +++ b/substrate/candidate-agreement/src/bft/mod.rs @@ -545,18 +545,6 @@ impl Strategy { attempt_advance = true; } - // the other situation we attempt to advance is if there is a proposal - // that is not equal to the one we are locked to. - match (self.local_state, self.current_accumulator.state(), &self.locked) { - (LocalState::Start, &State::Proposed(ref candidate), &Some(ref locked)) => { - let candidate_digest = context.candidate_digest(candidate); - if &candidate_digest != locked.digest() { - attempt_advance = true; - } - } - _ => {} - } - if attempt_advance { let message = Message::AdvanceRound( self.current_accumulator.round_number(),