NotEnoughStakeToSetWeights
Error v142 → v150, v151 → v219, v233 → v315, v320 → current 7.10Your hotkey doesn't have enough stake to set weights on this subnet .
Why This Error Exists
Setting weights is a validator privilege that requires skin in the game. Stake requirements prevent spam and ensure validators have economic alignment with the network. The minimum varies by subnet - root network (netuid 0) has especially high requirements.
Deep Dive
The runtime compares your hotkey stake weight on the subnet against StakeThreshold, a single global value. The subnet owner hotkey is exempt and can set weights at any stake level. Subnets may also require validator permits (top N by stake) on top of this check.
Debugging Example
You call set_weights(netuid=0, ...). Error: NotEnoughStakeToSetWeights. Query StakeThreshold for the minimum, then compare against your hotkey stake weight on that subnet. Solution: add enough stake to clear the threshold, then retry.
Prevention Tips
- Check stake requirements BEFORE running validator software
- Monitor your stake - partial unstakes can drop you below threshold
- Read StakeThreshold rather than assuming a fixed TAO figure
From Chain Metadata
The caller is requesting to set weights but the caller has less than minimum stake required to set weights (less than WeightsMinStake).
What This Means
Your hotkey doesn't have enough stake to set weights on this subnet.
Common Causes
- Stake below minimum required for validators
- Recently unstaked and dropped below threshold
- Different subnets have different stake requirements
How to Fix
- Check your current stake with SubtensorModule.TotalHotkeyStake
- Increase stake to meet validator requirements
- Verify stake requirements for this specific subnet
Storage to Check
Thrown By
Version History
Runtime Info
- Pallet Index
- 7
- Error Index
- 10
- Error Code
- 7.10
- Runtime Version
- v490