-
Notifications
You must be signed in to change notification settings - Fork 47
fix: allow fast unstaking for all #902
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
| pub const STAKE_DURATION: BlockNumber = 1; | ||
|
|
||
| #[cfg(feature = "fast-gov")] | ||
| pub const MIN_COLLATORS: u32 = 4; |
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.
Don't we want to change this too?
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.
I don't think this constant is very important. It's only used in set_max_selected_candidates as a validation parameter.
The pallet isn't used to fetch collators anyway
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.
Yes, this constraints the setting determining how many candidates are selected as collators. Which has become irrelevant now, and I would want to avoid fiddling with settings where not required, given that the pallet is pretty complex and it's hard to foresee all consequences of such changes.
Ad96el
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
Allows unstaking for all collator candidates and delegators in the staking pallet with minimum delay. Also prevents additional candidates or delegators from joining, and existing ones from increasing their stake.
Allows unstaking for all collator candidates and delegators in the staking pallet with minimum delay.
Also prevents additional candidates or delegators from joining, and existing ones from increasing their stake.
Note that collator selection is no longer dependent on the staking pallet, so removal of all candidates is inconsequential for the collator set.
Checklist:
array[3]useget(3), ...)