File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ impl<T: Config> Pallet<T> {
48
48
// --- 3. Drain the subnet block emission and accumulate it as subnet emission, which increases until the tempo is reached in #4.
49
49
// subnet_blockwise_emission -> subnet_pending_emission
50
50
for netuid in subnets. clone ( ) . iter ( ) {
51
+ if * netuid == 0 {
52
+ continue ;
53
+ }
51
54
// --- 3.1 Get the network's block-wise emission amount.
52
55
// This value is newly minted TAO which has not reached staking accounts yet.
53
56
let subnet_blockwise_emission: u64 = EmissionValues :: < T > :: get ( * netuid) ;
@@ -87,6 +90,11 @@ impl<T: Config> Pallet<T> {
87
90
Self :: set_blocks_since_last_step ( * netuid, 0 ) ;
88
91
Self :: set_last_mechanism_step_block ( * netuid, current_block) ;
89
92
93
+ if * netuid == 0 {
94
+ // Skip netuid 0 payouts
95
+ continue ;
96
+ }
97
+
90
98
// --- 4.4 Distribute owner take.
91
99
if SubnetOwner :: < T > :: contains_key ( netuid) {
92
100
// Does the subnet have an owner?
You can’t perform that action at this time.
0 commit comments