VotingPowerTrackingEnabled
Storage Map v385 → current--- MAP ( netuid ) --> bool | Whether voting power tracking is enabled for this subnet .
Explore chainFrom Chain Metadata
MAP ( netuid ) --> bool | Whether voting power tracking is enabled for this subnet. When enabled, VotingPower EMA is updated every epoch. Default is false. When disabled with disable_at_block set, tracking continues until that block.
Purpose & Usage
Purpose
When enabled, VotingPower EMA is updated every epoch. Default is false.
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
bool (bool)
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 VotingPowerTrackingEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.VotingPowerTrackingEnabled.getValue(netuid);
console.log("VotingPowerTrackingEnabled:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v385
- Current Version
- v411