CRV3WeightCommitsV2

Storage Map v297 → v490 · 1 shape change

Commit-reveal v3.2 weight commits storage (deprecated, empty at v411).

Explore chain
Queried by: developers

The 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

v424 v432 Breaking

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

#NameTypeDescription
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

0x00 (raw SCALE bytes)

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

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

Write Frequency
●●●●●○ High 1M–10M est. writes

1M to 10M writes

#140 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Version History

v297 block 6,067,943 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • 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)