Active
Storage Map v101 → v411 Changed in v411Whether neurons are active on a subnet .
Explore chainThe Big Picture
Not all registered neurons are actively participating. Some may be offline, misconfigured, or abandoned. Active tracks which neurons are currently contributing to the subnet - receiving queries, setting weights, or otherwise participating.
Why This Matters
Is this neuron actually doing anything? Active tells you if they're participating. Inactive neurons take up slots but don't contribute - they're pruning candidates.
Example Scenario
Query Active(netuid=1, uid=47) returns true/false. True means this neuron is actively participating. False suggests they're dormant - not serving, not setting weights.
Common Questions
- How is activity determined?
- Based on recent actions - serving requests, setting weights, etc. The specific criteria depends on subnet configuration (ActivityCutoff).
- Does inactive mean they'll be pruned?
- Inactivity contributes to lower pruning scores. Consistently inactive neurons are more likely to be replaced by new registrations.
- Can a neuron become active again?
- Yes, resume operations and activity status updates. It's not permanent - just reflects recent behavior.
Use Cases
- Check if a neuron is currently active
- Filter leaderboards to show only active neurons
- Calculate subnet utilization rates
- Identify dormant neurons for pruning consideration
- Build health dashboards showing active participation
From Chain Metadata
MAP ( netuid ) --> active
Purpose & Usage
Purpose
Track neuron activity status - identifies neurons currently participating vs dormant.
Common Query Patterns
- Query by netuid-uid
- Filter active neurons for analysis
- Count active vs inactive neurons
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
active (Vec<bool>)
Relationships
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 Active storage
const netuid = 1;
const result = await api.query.SubtensorModule.Active.getValue(netuid);
console.log("Active:", result);On-Chain Activity
100K–1M estimated writes
#30 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 7,429,232
Version History
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v411