mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 18:15:48 +00:00
Replicate Rob's PR (#4337)
This commit is contained in:
@@ -932,6 +932,13 @@ impl CandidateBackingJob {
|
||||
|
||||
// Sanity check that candidate is from our assignment.
|
||||
if Some(candidate.descriptor().para_id) != self.assignment {
|
||||
tracing::debug!(
|
||||
target: LOG_TARGET,
|
||||
our_assignment = ?self.assignment,
|
||||
collation = ?candidate.descriptor().para_id,
|
||||
"Subsystem asked to second for para outside of our assignment",
|
||||
);
|
||||
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -649,6 +649,9 @@ impl Initialized {
|
||||
},
|
||||
};
|
||||
let candidate_receipt = votes.candidate_receipt.clone();
|
||||
let was_concluded_valid = votes.valid.len() >= supermajority_threshold;
|
||||
let was_concluded_invalid = votes.invalid.len() >= supermajority_threshold;
|
||||
|
||||
let mut recent_disputes = overlay_db.load_recent_disputes()?.unwrap_or_default();
|
||||
let controlled_indices = find_controlled_validator_indices(&self.keystore, &validators);
|
||||
|
||||
@@ -813,10 +816,11 @@ impl Initialized {
|
||||
self.metrics.on_open();
|
||||
}
|
||||
|
||||
if concluded_valid {
|
||||
if !was_concluded_valid && concluded_valid {
|
||||
self.metrics.on_concluded_valid();
|
||||
}
|
||||
if concluded_invalid {
|
||||
|
||||
if !was_concluded_invalid && concluded_invalid {
|
||||
self.metrics.on_concluded_invalid();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user