MaxValidatorsLargerThanMaxUIds
Error v151 → current 19.1The max_validators parameter cannot exceed max_allowed_uids for a subnet .
Encountered by: subnet owners
Why This Error Exists
Validators are a subset of all UIDs on a subnet. You can't have more validators than total allowed participants. This constraint ensures subnet configuration remains logically consistent.
From Chain Metadata
The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet.
What This Means
The max_validators parameter cannot exceed max_allowed_uids for a subnet.
Common Causes
- Setting max_validators higher than the subnet's max_allowed_uids
- Not checking current max_allowed_uids before setting validators
How to Fix
- Query SubtensorModule.MaxAllowedUids for the subnet's current limit
- Set max_validators to a value <= max_allowed_uids
- Increase max_allowed_uids first if you need more validators
Storage to Check
SubtensorModule.MaxAllowedUids (removed)SubtensorModule.MaxAllowedValidators (removed)
Runtime Info
- Pallet Index
- 19
- Error Index
- 1
- Error Code
- 19.1
- Runtime Version
- v393