Skip to content

Voluntary deregistration#7

Closed
ppolewicz wants to merge 269 commits intodevnet-readyfrom
voluntary_deregistration
Closed

Voluntary deregistration#7
ppolewicz wants to merge 269 commits intodevnet-readyfrom
voluntary_deregistration

Conversation

@ppolewicz
Copy link
Copy Markdown

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

Comment thread pallets/subtensor/src/coinbase/root.rs Outdated
|| (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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

Comment thread pallets/subtensor/src/macros/dispatches.rs Outdated
Comment thread pallets/subtensor/src/macros/events.rs Outdated
#[pallet_section]
mod events {
use codec::Compact;
use frame_system::pallet_prelude::BlockNumberFor;
Copy link
Copy Markdown
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.

10 participants