Skip to content

Conversation

@ppolewicz
Copy link

I don't think there is a BIT for it yet?

|| (price == candidate_price && registered_at < candidate_timestamp)
let priority = SubnetDeregistrationPriority::<T>::get(netuid);

// Prioritize higher deregistration priority, then lowest price, then earliest registration.
Copy link
Author

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();
Copy link
Author

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));
Copy link
Author

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;
Copy link
Author

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

@ppolewicz ppolewicz closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.