MaxRegistrationsPerBlock
Storage Map v101 → currentMaximum registrations allowed per block .
Explore chainQueried by: minersvalidatorsdeveloperssubnet owners
The Big Picture
Only N registrations can happen per block. This prevents one entity from grabbing many slots in a single block and ensures fair distribution of registration opportunities.
Why This Matters
Registration failed? Might be rate limited. Only MaxRegistrationsPerBlock registrations per block. Check RegistrationsThisBlock to see if limit is reached.
Example Scenario
Query MaxRegistrationsPerBlock(netuid=1) returns 3. Only 3 registrations can happen per block on subnet 1. If 3 already happened, wait for next block.
Common Questions
- Why limit registrations?
- Fairness. Without limits, someone could script registrations to grab all slots instantly. The limit spreads opportunities over time.
- What's a typical value?
- Usually 1-3. Low enough to prevent spam, high enough to allow reasonable throughput.
Use Cases
- Check rate limits before registration
- Build registration retry logic
- Understand registration fairness mechanisms
- Design subnet rate limit parameters
- Debug registration failures
Purpose & Usage
Purpose
Rate limit registrations - prevents spam and ensures fair access.
Common Query Patterns
- Query by netuid
- Plan registration timing
- Understand rate limits
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
value (u16)
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 MaxRegistrationsPerBlock storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("MaxRegistrationsPerBlock")](
key1
);
console.log("MaxRegistrationsPerBlock:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393