don't broadcast advance vote immediately if locked

This commit is contained in:
Robert Habermeier
2017-12-27 18:48:35 +01:00
parent 80e23bbfb4
commit eec6d47a80
@@ -545,18 +545,6 @@ impl<C: Context> Strategy<C> {
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(),