ActivityCutoffFactorMilli
Storage Map v423 → v472 · 1 shape changeMAP ( netuid ) --> activity-cutoff factor in per-mille epochs (1/1000 granularity).
Explore chainFrom Chain Metadata
MAP ( netuid ) --> activity-cutoff factor in per-mille epochs (1/1000 granularity). Effective cutoff in blocks = `(factor × tempo) / 1000`, clamped to ≥ 1.
Purpose & Usage
Purpose
Effective cutoff in blocks = `(factor × tempo) / 1000`, clamped to ≥ 1.
Common Query Patterns
- Query by key
- Iterate all entries
Migration Notes
v424 v432 Breaking
key type changed from u16 to NetUid
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 u16 | netuid (NetUid, hashed key component) |
Stored Value
activity-cutoff (u32)
Default Value
13889 0x41360000
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
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 ActivityCutoffFactorMilli storage
const netuid = 1;
const result = await api.query.SubtensorModule.ActivityCutoffFactorMilli.getValue(netuid);
console.log("ActivityCutoffFactorMilli:", result);Version History
v423 block 8,486,593 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
- key :
u16→NetUid
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v423
- Current Version
- v472