InitialPruningScore

Constant v101 → current u16

Starting point for pruning calculations.

Current Value

65535
Relevant for: minersvalidatorssubnet ownersdevelopers

The Big Picture

When you register a new neuron, you start with this pruning score. Scores determine who gets replaced when the subnet is full - lowest scores are pruned first. A neutral initial score gives you time to prove yourself; a low initial score puts immediate pressure to perform. Combined with immunity period, this shapes early neuron survival.

Why This Matters

Your initial score affects how vulnerable you are after immunity expires. A high initial score buys time; a low initial score means you must perform immediately to avoid pruning.

Example

If InitialPruningScore is 50 on a scale of 0-100, new neurons start mid-pack. After immunity expires, if you haven't earned a better score through good performance, you're vulnerable to being replaced by better performers.

Common Questions

How do I improve my pruning score?
Perform well as a miner (serve good responses) or validator (set good weights). Stake also factors in. The exact formula varies by subnet.
Can I see my current pruning score?
Query PruningScores storage with your UID. Compare to other neurons to see your relative position.

Use Cases

  • Pruning
  • Neuron ranking

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 InitialPruningScore constant
const value = api.consts[stringCamelCase("SubtensorModule")][stringCamelCase("InitialPruningScore")];
console.log("InitialPruningScore:", value.toHuman());

Type Information

Type
u16
Byte Size
2 bytes
Encoding
fixed
Raw Hex
0xffff

Runtime Info

Pallet
SubtensorModule
First Version
v101
Latest Version
v101
Current Runtime
v393