mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
don't broadcast advance vote immediately if locked
This commit is contained in:
@@ -545,18 +545,6 @@ impl<C: Context> Strategy<C> {
|
|||||||
attempt_advance = true;
|
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 {
|
if attempt_advance {
|
||||||
let message = Message::AdvanceRound(
|
let message = Message::AdvanceRound(
|
||||||
self.current_accumulator.round_number(),
|
self.current_accumulator.round_number(),
|
||||||
|
|||||||
Reference in New Issue
Block a user