mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 22:41:06 +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() {
|
if self.seconded.is_none() {
|
||||||
// This job has not seconded a candidate yet.
|
// This job has not seconded a candidate yet.
|
||||||
let candidate_hash = candidate.hash();
|
let candidate_hash = candidate.hash();
|
||||||
let pov = Arc::new(pov);
|
|
||||||
|
|
||||||
if !self.issued_statements.contains(&candidate_hash) {
|
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?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ Output:
|
|||||||
|
|
||||||
Implemented as a gossip protocol. Handle updates to our view and peers' views. Neighbor packets are used to inform peers which chain heads we are interested in data for.
|
Implemented as a gossip protocol. Handle updates to our view and peers' views. Neighbor packets are used to inform peers which chain heads we are interested in data for.
|
||||||
|
|
||||||
Statement Distribution is the only backing subsystem which has any notion of peer nodes, who are any full nodes on the network. Validators will also act as peer nodes.
|
|
||||||
|
|
||||||
It is responsible for distributing signed statements that we have generated and forwarding them, and for detecting a variety of Validator misbehaviors for reporting to [Misbehavior Arbitration](../utility/misbehavior-arbitration.md). During the Backing stage of the inclusion pipeline, it's the main point of contact with peer nodes. On receiving a signed statement from a peer, assuming the peer receipt state machine is in an appropriate state, it sends the Candidate Receipt to the [Candidate Backing subsystem](candidate-backing.md) to handle the validator's statement.
|
It is responsible for distributing signed statements that we have generated and forwarding them, and for detecting a variety of Validator misbehaviors for reporting to [Misbehavior Arbitration](../utility/misbehavior-arbitration.md). During the Backing stage of the inclusion pipeline, it's the main point of contact with peer nodes. On receiving a signed statement from a peer, assuming the peer receipt state machine is in an appropriate state, it sends the Candidate Receipt to the [Candidate Backing subsystem](candidate-backing.md) to handle the validator's statement.
|
||||||
|
|
||||||
Track equivocating validators and stop accepting information from them. Establish a data-dependency order:
|
Track equivocating validators and stop accepting information from them. Establish a data-dependency order:
|
||||||
|
|||||||
Reference in New Issue
Block a user