ChildkeyThresholdSuspended
Storage Map v459 → currentParent hotkeys whose total stake is below StakeThreshold, with their child relations inert.
Explore chainThe Big Picture
Before v459 the stake gate was checked only when children were set. From v459 it is re-checked when stake moves, and failing it suspends rather than deletes the relations, so a parent that qualifies again resumes without resubmitting.
Why This Matters
A child of a suspended parent earns as if the relation did not exist, except on subnets the parent owns.
Example Scenario
Parent P falls below StakeThreshold and is inserted here. get_children(P, 7) returns nothing on subnet 7. P adds stake back, is queued, re-checked, and removed; its children reappear.
Use Cases
- Explain why a child stopped inheriting stake without any set_children call
- Flag parents whose delegations are dormant
From Chain Metadata
MAP ( parent ) --> () | Parents whose total stake is below `StakeThreshold`. Their child relations stay stored but are inert (hidden from `get_children` / `get_parents`) except on subnets they own, until they qualify again.
Purpose & Usage
Purpose
Hides a suspended parent child relations from get_children and get_parents so stake inheritance and dividend routing ignore them, without rewriting the relation rows.
Common Query Patterns
- Query a parent hotkey before trusting ChildKeys or ParentKeys for it
- Presence only; the value is unit
Notes
- First appears at runtime v459.
- Set or cleared by recheck_childkey_threshold: suspended when total stake is below StakeThreshold, cleared when at or above it or when the threshold is zero (staking/set_children.rs at v467).
- The exemption for a subnet the parent owns is local to that subnet: relations there stay active, and owning a subnet does not clear the flag (childkeys_suspended).
- Relation rows are untouched, so the cost of suspending does not depend on how many hotkeys share a child.
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | parent | AccountId [u8; 32] | parent (AccountId, hashed key component) (hex -> SS58) |
Stored Value
() (())
Default Value
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
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 ChildkeyThresholdSuspended storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ChildkeyThresholdSuspended.getValue(parent);
console.log("ChildkeyThresholdSuspended:", result);On-Chain Activity
100K to 1M writes
#186 most written storage item
Modified by runtime hooks (e.g., epoch transitions), not directly by user extrinsics
As of block 9,385,000
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v459
- Current Version
- v490