mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
* Statement distribution is now validator only. * Avoid Arc creation where it is not necessarily needed.
This commit is contained in:
@@ -773,10 +773,10 @@ impl CandidateBackingJob {
|
||||
if self.seconded.is_none() {
|
||||
// This job has not seconded a candidate yet.
|
||||
let candidate_hash = candidate.hash();
|
||||
let pov = Arc::new(pov);
|
||||
|
||||
if !self.issued_statements.contains(&candidate_hash) {
|
||||
self.validate_and_second(&span, &candidate, pov.clone()).await?;
|
||||
let pov = Arc::new(pov);
|
||||
self.validate_and_second(&span, &candidate, pov).await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user