mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-10 05:17:33 +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:
@@ -1,6 +1,8 @@
|
||||
# Session Info
|
||||
|
||||
For disputes and approvals, we need access to information about validator sets from prior sessions. We also often want easy access to the same information about the current session's validator set. This module aggregates and stores this information in a rolling window while providing easy APIs for access.
|
||||
For disputes and approvals, we need access to information about validator sets from prior sessions. We also often want
|
||||
easy access to the same information about the current session's validator set. This module aggregates and stores this
|
||||
information in a rolling window while providing easy APIs for access.
|
||||
|
||||
## Storage
|
||||
|
||||
@@ -66,10 +68,14 @@ Sessions: map SessionIndex => Option<SessionInfo>,
|
||||
|
||||
## Session Change
|
||||
|
||||
1. Update `EarliestStoredSession` based on `config.dispute_period` and remove all entries from `Sessions` from the previous value up to the new value.
|
||||
1. Create a new entry in `Sessions` with information about the current session. Use `shared::ActiveValidators` to determine the indices into the broader validator sets (validation, assignment, discovery) which are actually used for parachain validation. Only these validators should appear in the `SessionInfo`.
|
||||
1. Update `EarliestStoredSession` based on `config.dispute_period` and remove all entries from `Sessions` from the
|
||||
previous value up to the new value.
|
||||
1. Create a new entry in `Sessions` with information about the current session. Use `shared::ActiveValidators` to
|
||||
determine the indices into the broader validator sets (validation, assignment, discovery) which are actually used for
|
||||
parachain validation. Only these validators should appear in the `SessionInfo`.
|
||||
|
||||
## Routines
|
||||
|
||||
* `earliest_stored_session() -> SessionIndex`: Yields the earliest session for which we have information stored.
|
||||
* `session_info(session: SessionIndex) -> Option<SessionInfo>`: Yields the session info for the given session, if stored.
|
||||
* `session_info(session: SessionIndex) -> Option<SessionInfo>`: Yields the session info for the given session, if
|
||||
stored.
|
||||
|
||||
Reference in New Issue
Block a user