-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pallet_external_validators, remove ValidatorManager #722
Conversation
WASM runtime size check:Compared to target branchdancebox runtime: 1412 KB (no changes) ✅ flashbox runtime: 832 KB (no changes) ✅ dancelight runtime: 1988 KB (+1988 KB) container chain template simple runtime: 1096 KB (-4212 KB) ✅ container chain template frontier runtime: 1388 KB (-5136 KB) ✅ |
Coverage Report@@ Coverage Diff @@
## master tomasz-external-validators +/- ##
==============================================================
+ Coverage 65.25% 65.31% +0.06%
+ Files 302 304 +2
+ Lines 52728 53181 +453
==============================================================
+ Hits 34403 34733 +330
+ Misses 18325 18448 +123
|
A couple of things we need here:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the design of the pallet looks good to me, I just have some comments related to things I would change in the pallet plus testing, but overall looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add pallet_external_validators, remove pallet ValidatorManager.
Contains a migration to populate initial validators and remove all storage from ValidatorManager pallet.
Main storage items:
SkipExternalValidators
to true.Validators only change once per era. By default the era changes after a fixed number of sessions (currently 1 era = 6 sessions), but new eras can be forced or disabled using a root extrinsic.