mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 06:01:07 +00:00
Markdown linter (#1309)
* Add markdown linting - add linter default rules - adapt rules to current code - fix the code for linting to pass - add CI check fix #1243 * Fix markdown for Substrate * Fix tooling install * Fix workflow * Add documentation * Remove trailing spaces * Update .github/.markdownlint.yaml Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix mangled markdown/lists * Fix captalization issues on known words
This commit is contained in:
@@ -4,18 +4,18 @@
|
||||
|
||||
There are two main runtime APIs to work with PVF pre-checking.
|
||||
|
||||
The first runtime API is designed to fetch all PVFs that require pre-checking voting. The PVFs are
|
||||
identified by their code hashes. As soon as the PVF gains required support, the runtime API will
|
||||
not return the PVF anymore.
|
||||
The first runtime API is designed to fetch all PVFs that require pre-checking voting. The PVFs are identified by their
|
||||
code hashes. As soon as the PVF gains required support, the runtime API will not return the PVF anymore.
|
||||
|
||||
```rust
|
||||
fn pvfs_require_precheck() -> Vec<ValidationCodeHash>;
|
||||
```
|
||||
|
||||
The second runtime API is needed to submit the judgement for a PVF, whether it is approved or not.
|
||||
The voting process uses unsigned transactions. The [`PvfCheckStatement`](../types/pvf-prechecking.md) is circulated through the network via gossip similar to a normal transaction. At some point the validator
|
||||
will include the statement in the block, where it will be processed by the runtime. If that was the
|
||||
last vote before gaining the super-majority, this PVF will not be returned by `pvfs_require_precheck` anymore.
|
||||
The second runtime API is needed to submit the judgement for a PVF, whether it is approved or not. The voting process
|
||||
uses unsigned transactions. The [`PvfCheckStatement`](../types/pvf-prechecking.md) is circulated through the network via
|
||||
gossip similar to a normal transaction. At some point the validator will include the statement in the block, where it
|
||||
will be processed by the runtime. If that was the last vote before gaining the super-majority, this PVF will not be
|
||||
returned by `pvfs_require_precheck` anymore.
|
||||
|
||||
```rust
|
||||
fn submit_pvf_check_statement(stmt: PvfCheckStatement, signature: ValidatorSignature);
|
||||
|
||||
Reference in New Issue
Block a user