You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/subnets/understanding-sub-subnets.md
+16-19Lines changed: 16 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,20 @@ Each sub-subnet has its own:
16
16
-**Weight matrix**: Each validator sets weights for each miner on each of the subnet's sub-subnets.
17
17
-**Independent emissions**: Since they depend on weights set by validators, a miner's emissions in each sub-subnet are independent.
18
18
-**Transparent on-chain data**: All sub-subnet configurations and the flow of emissions are visible on-chain.
19
-
-**Emission distribution**: Currently emissions are evenly distributed, but it is planned that subnet creators will control what percentage of total emissions goes to each sub-subnet.
20
-
21
-
19
+
-**Emission distribution**: Subnet creators can control what percentage of total emissions goes to each sub-subnet using the `sudo_set_subsubnet_emission_split` extrinsic. <!-- See: subtensor/pallets/admin-utils/src/lib.rs:1891-1910 -->
22
20
23
21
### Takeaways
24
22
25
-
1.**Same Validators, Same Stake**: All validators participate in all sub-subnets with identical stake weights.
26
-
2.**Same Miners**: All registered miners can participate in any or all sub-subnets.
27
-
3.**Owner-Controlled Proportions**: The holder of the *subnet creator* key will set the emission distribution among sub-subnets.
28
-
<!-- CHeck release state of above feature!!! -->
23
+
1.**Same Validators, Same Stake**: All validators participate in all sub-subnets within a subnet with identical stake weights.
24
+
2.**Same Miners**: All miners registered on a subnet can participate in any or all of its sub-subnets.
25
+
3.**Owner-Controlled Proportions**: The holder of the *subnet creator* key sets the emission distribution among sub-subnets.
29
26
4.**Separate Yuma Consensus**: Each sub-subnet runs its own consensus to determine miner rankings.
30
27
31
-
32
28
## What Should Stakers Know?
33
29
34
30
**Core Impact:**
35
-
-**No change to your staking mechanics**: Your stake weight remains identical across all sub-subnets within a subnet. The same validators, same stake, same neurons participate in all sub-subnets.
36
-
-**Same total emissions**: The subnet's total emissions remain unchanged - sub-subnets only redistribute these emissions internally.
31
+
-**No change to your staking mechanics**: Your stake is delegated to a validator on a subnet, and applies across all sub-subnets equally.
32
+
-**Same total emissions**: The subnet's total emissions and remain unchanged - sub-subnets only redistribute these emissions internally among miners and validators.
37
33
-**Transparent allocation**: All emission proportions are visible on-chain, so you can see exactly how subnet owners are distributing emissions.
38
34
39
35
**What This Means for Your Strategy:**
@@ -45,7 +41,7 @@ Each sub-subnet has its own:
45
41
## What Should Miners Know?
46
42
47
43
**Automatic Participation:**
48
-
-**No separate registration**: When you register for a subnet, you automatically participate in ALL its sub-subnets
44
+
-**No separate registration**: When you register for a subnet, you are eligible to participate in any of its sub-subnets
49
45
-**Same UID across all sub-subnets**: You use the same UID for all sub-subnets within a subnet
50
46
51
47
**Performance Tracking:**
@@ -61,38 +57,37 @@ Each sub-subnet has its own:
61
57
-**Independent evaluation**: Each sub-subnet requires separate assessment according to its specific criteria.
62
58
-**Separate Yuma Consensus**: Each sub-subnet runs its consensus algorithm independently to determine rankings.
63
59
-**Same stake weight**: Your stake weight is identical across all sub-subnets - no additional stake required.
64
-
-**Weighted dividend calculation**: Your dividends are calculated as a weighted sum of your performance across all sub-subnets. If you don't validate on all sub-subnets, you receive proportionally reduced emissions (e.g., if you validate 1 out of 8 sub-subnets, you receive 1/8 of your potential emissions).
60
+
-**Weighted dividend calculation**: Your dividends are calculated as a weighted sum of your performance across all sub-subnets. If you don't validate on all sub-subnets, you will receive proportionally reduced emissions.
65
61
66
62
### Operational Changes
67
63
68
-
69
64
**1. Evaluation Workload:**
70
65
-**Multiple assessments**: You must evaluate miners separately for each sub-subnet's tasks
71
66
-**Different criteria**: Each sub-subnet may have distinct evaluation standards
72
67
73
68
**2. Data Structure Changes:**
74
-
-**Two-dimensional weights**: Weight data becomes `[validator][uid][sub_subnet]`
69
+
-**Two-dimensional weights**: Weights are now set for each miner on each subnet.
75
70
-**Separate incentive tracking**: Each sub-subnet tracks incentives independently
76
71
-**Extended metagraph**: New columns for sub-subnet weights and incentives
77
72
78
73
## What Should Subnet Creators/Developers Know?
79
74
80
75
### Core Changes
81
-
-**Emission distribution**: Currently, emissions are divided evenly between subnets; In the planned release state, you will control what percentage of total emissions goes to each sub-subnet.
76
+
-**Emission distribution**: You can control what percentage of total emissions goes to each sub-subnet using the `sudo_set_subsubnet_emission_split` extrinsic. When the number of sub-subnets is set, the emission distribution is reset to even, but you can set it again with custom proportions.
82
77
83
78
:::info
84
-
Currently, emissions are divided evenly between sub-subnets; In the planned release state, you will control what percentage of total emissions goes to each sub-subnet (planned feature).
79
+
The `sudo_set_subsubnet_emission_split` extrinsic accepts an optional vector parameter. If the parameter is `None`, the distribution is set to an even split. When it's not `None`, it reflects the proportion of emissions each sub-subnet gets. The proportion is calculated as `value / 65535`. For example, with two sub-subnets and vector `[13107, 52428]`, sub-subnet 0 gets 20% and sub-subnet 1 gets 80%. <!-- See: subtensor/pallets/subtensor/src/subnets/subsubnet.rs:173-175 -->
85
80
:::
86
81
-**Incentive mechanism design**: You define the specific tasks and evaluation criteria for each sub-subnet
87
82
-**Transparent configuration**: All sub-subnet settings are visible on-chain for community oversight
88
83
-**Single subnet slot**: No need to register multiple subnets for multiple competitions
89
-
84
+
-**Immediate sub-subnet number setting**: The number of sub-subnets is set immediately when changed. <!-- See: subtensor/pallets/subtensor/src/subnets/subsubnet.rs:91-116 -->
85
+
-**Rate limiting**: Subnet owners can set the number of sub-subnets once per 7200 blocks to prevent frequent changes. <!-- See: subtensor/pallets/subtensor/src/lib.rs:1842-1844 -->
90
86
91
87
:::tip
92
-
Ensure proportions sum to 100%.
88
+
Ensure proportions sum to 100% when setting them, or the request will be rejected.
93
89
:::
94
90
95
-
96
91
## Example Emissions Split
97
92
98
93
For each subnet, the subnet creator keeps 18% of emissions, 41% is allocated to miners, and 41% to validators and their stakers, unless the subnet creator has reduced their take. Of the 41% that goes to miners and validators, here is an estimated emission distribution across three sub-subnets for each 100 $\tau$ earned on the subnet:
@@ -101,6 +96,8 @@ For each subnet, the subnet creator keeps 18% of emissions, 41% is allocated to
101
96
- Sub-subnet 1 (30%): 100 $\tau$ *.41 * .3 = 12.3
102
97
- Sub-subnet 2 (10%): 100 $\tau$ *.41 * .1 = 4.1
103
98
99
+
**Setting Custom Proportions:**
100
+
To achieve the above distribution, the subnet owner would submit the `sudo_set_subsubnet_emission_split` extrinsic with the vector `[39321, 19660, 6554]` (calculated as 60% × 65535, 30% × 65535, 10% × 65535).
104
101
105
102
Note that a miner who excels in sub-subnet 0 but performs poorly in others might receive more emissions than a miner who performs moderately across all sub-subnets, depending on the emission proportions and their relative performance.
0 commit comments