-
Notifications
You must be signed in to change notification settings - Fork 247
Trim uids #1998
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
Trim uids #1998
Conversation
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.
Confused about these "UID's". At first glance it looks like a hyperparameter. If so, you need to extend the Hyperparameter enum we introduced earlier and use TransactionType::OwnerUpdateHyperparam. You would also need to use ensure_root_with_limits to enforce the freeze window. Otherwise just ignore. At the same time I can see it was before and it's configured via a constant.
Yes, it is like an hyperparameter but with a custom rate limit of 1 time per month to avoid abuse given it kicks out neurons. I added the ensure_root_with_limit for the 2nd extrinsic! |
Description
Allows subnets to trim the number of active UIDs while preserving immune UIDs (temporally and owner owned), compressing the UIDs to the left and migrating/clearing associated storage.
A new extrinsic + storage item has been defined for the minimum allowed number of UIDs of a subnet and we can't trim below this limit which is set to 64 to start with and will allow gradual controlled trimming on a per subnet basis to prevent abuse.