subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

dTao Compatible Subnet Deregistration

Open JohnReedV opened this issue 5 months ago • 0 comments

dTao-Compatible Subnet Deregistration

Background

Since the dTao launch, our existing subnet deregistration (dissolve_network / remove_network) is no longer working correctly.

Subnet Pruning

  • Triggered when SubnetLimit is reached
  • Step 1: Exclude subnets still within NetworkImmunityPeriod
  • Step 2: Among the rest, find the subnet with the lowest current emission
  • Step 3: If multiple share the same emission, pick the one with the earliest registration timestamp

Network Dissolution

  • In dissolve_network / remove_network, perform full dTao cleanup:
    • Destroy all α-in and α-out stakes
    • Distribute remaining Tao to α-out stakers pro-rata
  • Maintain root-only access to direct calls for now

Explicit Subnet Limit

Add new sudo hyperparameter SubnetLimit starting at 128.

High-Level Flow

New Registration → check slot cap?
  ├─ No → register network, grant immunity
  └─ Yes → prune one subnet → deregister → register new
Deregistration (manual or pruning) → destroy α-in/out → distribute Tao → remove network

JohnReedV avatar May 19 '25 17:05 JohnReedV