Queried by: validatorssubnet ownersdevelopers
The Big Picture
Yuma3 is an advanced consensus mechanism. When enabled, subnets use Yuma3 features for weight processing and emission calculation.
Use Cases
- Check if Yuma3 is active
- Plan validation strategy
- Build consensus-aware tools
From Chain Metadata
MAP ( netuid ) --> Whether or not Yuma3 is enabled
Purpose & Usage
Purpose
Toggle advanced consensus features.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
value (bool)
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 Yuma3On storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("Yuma3On")](
key1
);
console.log("Yuma3On:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v273
- Current Version
- v393