mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-09 07:07:22 +00:00
Configurable maximum validators (#2586)
* guide: max_validators * guide: new approach * restrict validators based on configurable max * add some tests * fix wasm build (Vec) * clean up warnings * add logging * set validator indices in tests as well * fix common tests * Update runtime/parachains/src/util.rs Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
committed by
GitHub
parent
30e4a67f0c
commit
8b4f46d2df
@@ -47,7 +47,7 @@ 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.
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user