-
Notifications
You must be signed in to change notification settings - Fork 503
feat: pallet-collator-selection improvement
#1538
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
Conversation
|
/bench astar-dev,shibuya-dev,shiden-dev pallet_collator_selection |
|
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/17574770820. |
|
Benchmark job failed. |
|
/bench astar,shibuya,shiden pallet_collator_selection |
|
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/17576131975. |
|
Benchmarks have been finished. |
|
/bench astar-dev,shibuya-dev,shiden-dev pallet_collator_selection |
|
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/18000194658. |
|
Benchmark job failed. |
|
/bench astar,shibuya,shiden pallet_collator_selection |
|
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/18002582024. |
|
Benchmarks have been finished. |
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.
Really clean thanks!
I just have 2 questions and one suggestion
Dinonard
left a comment
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
PierreOssun
left a comment
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
9bdf533
Minimum allowed line rate is |
Partially resolves #1521
Summary
This PR updates the collator selection mechanism to governance approved system. A candidate applicant needs to apply first by reserving the bond and only once application is approved by governanace the node is added to collator candidates. Also governanace can kick & slash bad performing collator candidates.
The pallet uses two configurable origins for governance actions
GovernanceOrigin: Can approve/close candidacy applicationsForceRemovalOrigin: Can forcibly kick and slash candidatesThe following extrinsincs are added,
apply_for_candidacy: Apply to be a candidate by reserving bondclose_application: Close pending candidate application, unreserve the bond.approve_application: Approve the candidate application, add node to candidates. (OnlyGovernanceOrigin)kick_candidate: Kick and slash a candidate immediately. (OnlyForceRemovalOrigin)leave_intentcall with utility'sdispatch_asvia a referendumNote:-
The old
register_as_candidateis deprecated and will fail withPermissionerror (should be removed?)Configs
For Astar & Shibuya
GovernanceOrigin: 2/3 MainCouncil OR ReferendumForceRemovalOrigin: 2/3 MainCouncil OR ReferendumFor Shiden, both root account
TODO
Check list**