@@ -15,7 +15,7 @@ pub enum TransactionType {
1515 OwnerHyperparamUpdate ( Hyperparameter ) ,
1616 SubsubnetCountUpdate ,
1717 SubsubnetEmission ,
18- SetMaxAllowedUids ,
18+ MaxUidsTrimming ,
1919}
2020
2121impl TransactionType {
@@ -27,7 +27,7 @@ impl TransactionType {
2727 Self :: RegisterNetwork => NetworkRateLimit :: < T > :: get ( ) ,
2828 Self :: SubsubnetCountUpdate => SubsubnetCountSetRateLimit :: < T > :: get ( ) ,
2929 Self :: SubsubnetEmission => SubsubnetEmissionRateLimit :: < T > :: get ( ) ,
30-
30+ Self :: MaxUidsTrimming => MaxUidsTrimmingRateLimit :: < T > :: get ( ) ,
3131 Self :: Unknown => 0 , // Default to no limit for unknown types (no limit)
3232 _ => 0 ,
3333 }
@@ -140,7 +140,7 @@ impl From<TransactionType> for u16 {
140140 TransactionType :: OwnerHyperparamUpdate ( _) => 6 ,
141141 TransactionType :: SubsubnetCountUpdate => 7 ,
142142 TransactionType :: SubsubnetEmission => 8 ,
143- TransactionType :: SetMaxAllowedUids => 9 ,
143+ TransactionType :: MaxUidsTrimming => 9 ,
144144 }
145145 }
146146}
@@ -157,7 +157,7 @@ impl From<u16> for TransactionType {
157157 6 => TransactionType :: OwnerHyperparamUpdate ( Hyperparameter :: Unknown ) ,
158158 7 => TransactionType :: SubsubnetCountUpdate ,
159159 8 => TransactionType :: SubsubnetEmission ,
160- 9 => TransactionType :: SetMaxAllowedUids ,
160+ 9 => TransactionType :: MaxUidsTrimming ,
161161 _ => TransactionType :: Unknown ,
162162 }
163163 }
0 commit comments