-
Notifications
You must be signed in to change notification settings - Fork 0
Voluntary deregistration #7
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
| || (price == candidate_price && registered_at < candidate_timestamp) | ||
| let priority = SubnetDeregistrationPriority::<T>::get(netuid); | ||
|
|
||
| // Prioritize higher deregistration priority, then lowest price, then earliest registration. |
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.
it's a bit weird but it's O(N) and the tests pass
| ); | ||
|
|
||
| let current_block: BlockNumberFor<T> = <frame_system::Pallet<T>>::block_number(); | ||
| let delay: BlockNumberFor<T> = ColdkeySwapScheduleDuration::<T>::get(); |
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 feel we should have a separate setting for this, but the hyperparameter framework will overhaul this imminently anyway
| SubnetDeregistrationPrioritySchedule::<T>::take(netuid).is_some(); | ||
|
|
||
| if was_flagged || had_schedule { | ||
| Self::deposit_event(Event::SubnetDeregistrationPriorityCleared(netuid)); |
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.
should have separate events for those two cases?
| #[pallet_section] | ||
| mod events { | ||
| use codec::Compact; | ||
| use frame_system::pallet_prelude::BlockNumberFor; |
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 understand why BlockNumberFor used to work without this? It's used in other places in the same file, dissolution, chk
- change RootClaimed key order
…-fees Disable root claim fees.
…lution-optimization2
Init flows instead of transition, set temperature = 1.0
…n-optimization2 Network dissolution optimization for root claim
Feat/new coinbase
Fix e2e CI + evm test
Distribute leasing dividends as alpha instead of tao
I don't think there is a BIT for it yet?