MaxAllowedUIdsLessThanCurrentUIds
Error v151 → current 19.2Cannot reduce max_allowed_uids below the current number of registered neurons.
Encountered by: subnet owners
Why This Error Exists
The chain prevents shrinking a subnet below its current population. This protects existing neurons from being forcibly deregistered. Shrink the subnet organically through natural churn.
From Chain Metadata
The maximum number of subnet validators must be more than the current number of UIDs already in the subnet.
What This Means
Cannot reduce max_allowed_uids below the current number of registered neurons.
Common Causes
- Trying to shrink a subnet that already has more neurons registered than the new limit
- Not checking current neuron count before reducing max_allowed_uids
How to Fix
- Query SubtensorModule.SubnetworkN to check current neuron count
- Set max_allowed_uids >= current neuron count
- Wait for neurons to deregister naturally, or remove them first
Storage to Check
SubtensorModule.SubnetworkN (removed)SubtensorModule.MaxAllowedUids (removed)
Runtime Info
- Pallet Index
- 19
- Error Index
- 2
- Error Code
- 19.2
- Runtime Version
- v393