CRV3WeightCommitsV2
Storage Map v297 → v490 · 1 shape changeCommit-reveal v3.2 weight commits storage (deprecated, empty at v411).
Explore chainThe Big Picture
Deprecated storage for commit-reveal v3.2. Superseded by TimelockedWeightCommits. Empty at v411 — middle link in the CRV3WeightCommits → CRV3WeightCommitsV2 → TimelockedWeightCommits chain.
Use Cases
- Access legacy commit data (empty at v411)
- Migration tooling
From Chain Metadata
MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)> Deprecated: superseded by `TimelockedWeightCommits`.
Purpose & Usage
Purpose
Intermediate storage in the CRV3 migration chain. Value shape added `commit_block` vs the legacy CRV3WeightCommits, and was itself superseded by TimelockedWeightCommits. Empty at v411 (0 entries).
Common Query Patterns
- Query by (netuid, epoch) — returns empty Vec at v411
- See TimelockedWeightCommits for current data
Migration Notes
key type changed from (u16, u64) to (NetUidStorageIndex, u64)
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid netuid | NetUidStorageIndex | netuid (NetUidStorageIndex, hashed key component) |
| 2 | epoch | u64 | epoch (u64, hashed key component) |
Stored Value
Value in RAO (÷10⁹ for TAO)
Default Value
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Related Storages
- CRV3WeightCommits Supersedes Added `commit_block` field to the tuple. Same key shape (NetUid, u64 epoch).
- TimelockedWeightCommits Superseded by Source comment `DEPRECATED for TimelockedWeightCommits`.
Modified By
Related Events
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query CRV3WeightCommitsV2 storage
const netuid = 1;
const epoch = 0n;
const result = await api.query.SubtensorModule.CRV3WeightCommitsV2.getValue(netuid, epoch);
console.log("CRV3WeightCommitsV2:", result);On-Chain Activity
1M to 10M writes
#140 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- key :
(u16, u64)→(NetUidStorageIndex, u64)
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v297
- Current Version
- v490
- Population
- sparse-by-structure (~0 entries)