You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should track incoming manifests (Full or Acknowledgement) per ValidatorIndex and per CandidateHash
The manifest has a single type independent of its kind (Full or Acknowledgement):
// ManifestSummary represents a summary of a manifest being sent by a counterparty.typeManifestSummarystruct {
// ClaimedParentHash is the claimed parent head data hash of the candidate.ClaimedParentHashHash// ClaimedGroupIndex is the claimed group index assigned to the candidate.ClaimedGroupIndexGroupIndex// StatementKnowledge is a statement filter sent alongside the candidate, communicating knowledge.StatementKnowledgeStatementFilter
}
This manifest are received from a remote peer and we should track it in a map using CandidateHash as its key
typeReceivedManifestsstruct {
Receivedmap[CandidateHash]ManifestSummary// seconded counts is a limit of how many seconded statement// a given candidate can have, defined per sessionSecondedCountsmap[GroupIndex][]uint
}
Functionalities
Import manifest summary:
To import the manifest summary in the map we should follow the conditions:
For new candidate hash we should check if the seconded in group respect the limit defined by the session, see statement-distribution/src/v2/mod.rs#L2414. This means that, the imported manifest should have the amount of seconded statements below the defined limit.
If the candidate already exists we can update it only if
the informations in the incoming manifest summary does not conflict with the current informations
the imported manifest should have the amount of seconded statements below the defined limit.
Retrieve StatementKnowledge for a given candidate hash
Issue summary
We should track incoming manifests (Full or Acknowledgement) per ValidatorIndex and per CandidateHash
The manifest has a single type independent of its kind (Full or Acknowledgement):
This manifest are received from a remote peer and we should track it in a map using CandidateHash as its key
Functionalities
Import manifest summary:
To import the manifest summary in the map we should follow the conditions:
Retrieve
StatementKnowledge
for a given candidate hashOther information and links
Acceptance criteria
The text was updated successfully, but these errors were encountered: