CommitRevealDisabled

Error v151 → v202, v205 → v212, v216 → v216, v217 → v219, v233 → v315, v320 → v326, v334 → v393, v401 → current 7.54

Commit-reveal is disabled but you tried to use it.

Encountered by: validatorsdevelopers

Why This Error Exists

Not all subnets use commit-reveal. Some prefer the simplicity of direct weight setting. When commit-reveal is disabled, calling commit_weights or reveal_weights is unnecessary overhead. The subnet owner configures this based on whether front-running is a concern for their use case.

Deep Dive

CommitRevealWeightsEnabled(netuid) returns false for subnets that don't use this mechanism. In this mode, just call set_weights directly with your weights. The commit_weights and reveal_weights calls will fail since there's nothing to commit to or reveal from.

Debugging Example

You call commit_weights(netuid=1, hash=0xabc...). Error: CommitRevealDisabled. Query CommitRevealWeightsEnabled(1) - returns false. Subnet 1 uses direct weights. Solution: Skip commit/reveal entirely. Call set_weights(netuid=1, uids=[...], weights=[...]) directly.

Prevention Tips

  • Check CommitRevealWeightsEnabled(netuid) before choosing weight-setting method
  • Make your validator software handle both modes dynamically
  • Monitor subnet configuration changes - this setting can be toggled

From Chain Metadata

Attemtping to commit/reveal weights when disabled.

What This Means

Commit-reveal is disabled but you tried to use it.

Common Causes

  • Subnet doesn't use commit-reveal
  • Should use set_weights directly instead

How to Fix

  • Use set_weights instead of commit/reveal
  • Check CommitRevealWeightsEnabled to verify

Storage to Check

Thrown By

Version History

v151 block 3,157,274 Added
v205 block 4,209,446 Shape modified
v216 block 4,510,996 Shape modified
v217 block 4,590,522 Shape modified
v233 block 4,920,350 Shape modified
v320 block 6,523,566 Shape modified
v334 block 6,811,690 Shape modified
v401 block 8,036,576 Shape modified Current

Runtime Info

Pallet Index
7
Error Index
54
Error Code
7.54
Runtime Version
v411