mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 04:51:08 +00:00
guide: validation data refactoring (#1576)
* guide: validation data refactoring * address grumbles from review * Update roadmap/implementers-guide/src/types/candidate.md Co-authored-by: Bernhard Schuster <bernhard@ahoi.io> * last comments from review Co-authored-by: Sergei Shulepov <sergei@parity.io> Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
This commit is contained in:
committed by
GitHub
parent
57aef8eef5
commit
2a96c19370
@@ -0,0 +1,11 @@
|
||||
# Persisted Validation Data
|
||||
|
||||
Yields the [`PersistedValidationData`](../types/candidate.md#persistedvalidationdata) for the given [`ParaId`](../types/candidate.md#paraid) along with an assumption that should be used if the para currently occupies a core:
|
||||
|
||||
```rust
|
||||
/// Returns the persisted validation data for the given para and occupied core assumption.
|
||||
///
|
||||
/// Returns `None` if either the para is not registered or the assumption is `Freed`
|
||||
/// and the para already occupies a core.
|
||||
fn persisted_validation_data(at: Block, ParaId, OccupiedCoreAssumption) -> Option<PersistedValidationData>;
|
||||
```
|
||||
Reference in New Issue
Block a user