ValidatorPruneLen
Storage Map v101 → currentNumber of validators considered for pruning .
Explore chainQueried by: validatorssubnet ownersdevelopers
The Big Picture
Not all validators face equal pruning risk. ValidatorPruneLen defines how many validators are in the 'danger zone' - the lowest performers who might be replaced. Smaller values mean only the very worst are at risk; larger values mean more competitive turnover.
Why This Matters
As a validator, am I at risk of pruning? If you're in the bottom ValidatorPruneLen, new registrations could replace you. Stay above this line.
Example Scenario
Query ValidatorPruneLen(netuid=1) returns 10. The bottom 10 validators by performance are at risk when new validators try to register.
Common Questions
- How do I know if I'm in the prune zone?
- Rank validators by performance. If you're in the bottom ValidatorPruneLen, you're at risk. Improve performance or increase stake to climb out.
- Is this the same as miner pruning?
- Similar concept but specific to validators. Validators have their own pruning dynamics separate from general neuron pruning.
Use Cases
- Understand validator turnover dynamics
- Assess your pruning risk as a validator
- Research subnet validator economics
- Design subnet competition parameters
- Build validator risk dashboards
Purpose & Usage
Purpose
Control validator turnover - how many low-performers are at risk.
Common Query Patterns
- Query by netuid
- Understand pruning risk
- Research validator competition
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Query ValidatorPruneLen storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("ValidatorPruneLen")](
key1
);
console.log("ValidatorPruneLen:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393