NotEnoughStakeToSetWeights

Error Re-added v142 → v150, v151 → v219, v233 → v315, v320 → current 7.10

Your hotkey doesn't have enough stake to set weights on this subnet .

Encountered by: validatorsdevelopers

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 stake threshold is checked against TotalHotkeyStake - the sum of all stake delegated to your hotkey across all coldkeys. For root network specifically, MinStakeForRoot applies. For other subnets, there may be subnet-specific minimums. Some subnets allow any registered neuron to set weights, while others require validator permits (top N by stake).

Debugging Example

You call set_weights(netuid=0, ...). Error: NotEnoughStakeToSetWeights. Query TotalHotkeyStake(your_hotkey) - returns 500 TAO. Query MinStakeForRoot - returns 1000 TAO. You need 1000 TAO minimum, but only have 500. Solution: Add 500+ more TAO stake, then retry.

Prevention Tips

  • Check stake requirements BEFORE running validator software
  • Monitor your stake - partial unstakes can drop you below threshold
  • For root network, maintain healthy buffer above MinStakeForRoot

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

v142 block 2,543,779 Added
v151 block 3,157,274 Re-added
v233 block 4,920,350 Re-added
v320 block 6,523,566 Re-added Current

Runtime Info

Pallet Index
7
Error Index
10
Error Code
7.10
Runtime Version
v393