@@ -957,21 +957,6 @@ pub mod pallet {
957
957
Ok ( ( ) )
958
958
}
959
959
960
- /// The extrinsic sets the subnet limit for the network.
961
- /// It is only callable by the root account.
962
- /// The extrinsic will call the Subtensor pallet to set the subnet limit.
963
- #[ pallet:: call_index( 37 ) ]
964
- #[ pallet:: weight( (
965
- Weight :: from_parts( 14_000_000 , 0 )
966
- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) ) ,
967
- DispatchClass :: Operational ,
968
- Pays :: No
969
- ) ) ]
970
- pub fn sudo_set_subnet_limit ( origin : OriginFor < T > , _max_subnets : u16 ) -> DispatchResult {
971
- ensure_root ( origin) ?;
972
- Ok ( ( ) )
973
- }
974
-
975
960
/// The extrinsic sets the lock reduction interval for the network.
976
961
/// It is only callable by the root account.
977
962
/// The extrinsic will call the Subtensor pallet to set the lock reduction interval.
@@ -1076,26 +1061,6 @@ pub mod pallet {
1076
1061
Ok ( ( ) )
1077
1062
}
1078
1063
1079
- // The extrinsic sets the target stake per interval.
1080
- // It is only callable by the root account.
1081
- // The extrinsic will call the Subtensor pallet to set target stake per interval.
1082
- // #[pallet::call_index(47)]
1083
- // #[pallet::weight((0, DispatchClass::Operational, Pays::No))]
1084
- // pub fn sudo_set_target_stakes_per_interval(
1085
- // origin: OriginFor<T>,
1086
- // target_stakes_per_interval: u64,
1087
- // ) -> DispatchResult {
1088
- // ensure_root(origin)?;
1089
- // pallet_subtensor::Pallet::<T>::set_target_stakes_per_interval(
1090
- // target_stakes_per_interval,
1091
- // );
1092
- // log::debug!(
1093
- // "TxTargetStakesPerIntervalSet( set_target_stakes_per_interval: {:?} ) ",
1094
- // target_stakes_per_interval
1095
- // ); (DEPRECATED)
1096
- // Ok(())
1097
- // } (DEPRECATED)
1098
-
1099
1064
/// The extrinsic enabled/disables commit/reaveal for a given subnet.
1100
1065
/// It is only callable by the root account or subnet owner.
1101
1066
/// The extrinsic will call the Subtensor pallet to set the value.
@@ -1157,62 +1122,6 @@ pub mod pallet {
1157
1122
)
1158
1123
}
1159
1124
1160
- // DEPRECATED
1161
- // #[pallet::call_index(52)]
1162
- // #[pallet::weight((0, DispatchClass::Operational, Pays::No))]
1163
- // pub fn sudo_set_hotkey_emission_tempo(
1164
- // origin: OriginFor<T>,
1165
- // emission_tempo: u64,
1166
- // ) -> DispatchResult {
1167
- // ensure_root(origin)?;
1168
- // pallet_subtensor::Pallet::<T>::set_hotkey_emission_tempo(emission_tempo);
1169
- // log::debug!(
1170
- // "HotkeyEmissionTempoSet( emission_tempo: {:?} )",
1171
- // emission_tempo
1172
- // );
1173
- // Ok(())
1174
- // }
1175
-
1176
- /// Sets the maximum stake allowed for a specific network.
1177
- ///
1178
- /// This function allows the root account to set the maximum stake for a given network.
1179
- /// It updates the network's maximum stake value and logs the change.
1180
- ///
1181
- /// # Arguments
1182
- ///
1183
- /// * `origin` - The origin of the call, which must be the root account.
1184
- /// * `netuid` - The unique identifier of the network.
1185
- /// * `max_stake` - The new maximum stake value to set.
1186
- ///
1187
- /// # Returns
1188
- ///
1189
- /// Returns `Ok(())` if the operation is successful, or an error if it fails.
1190
- ///
1191
- /// # Example
1192
- ///
1193
- ///
1194
- /// # Notes
1195
- ///
1196
- /// - This function can only be called by the root account.
1197
- /// - The `netuid` should correspond to an existing network.
1198
- ///
1199
- /// # TODO
1200
- ///
1201
- // - Consider adding a check to ensure the `netuid` corresponds to an existing network.
1202
- // - Implement a mechanism to gradually adjust the max stake to prevent sudden changes.
1203
- // #[pallet::weight(<T as Config>::WeightInfo::sudo_set_network_max_stake())]
1204
- #[ pallet:: call_index( 53 ) ]
1205
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1206
- pub fn sudo_set_network_max_stake (
1207
- origin : OriginFor < T > ,
1208
- _netuid : NetUid ,
1209
- _max_stake : u64 ,
1210
- ) -> DispatchResult {
1211
- // Ensure the call is made by the root account
1212
- ensure_root ( origin) ?;
1213
- Ok ( ( ) )
1214
- }
1215
-
1216
1125
/// Sets the duration of the coldkey swap schedule.
1217
1126
///
1218
1127
/// This extrinsic allows the root account to set the duration for the coldkey swap schedule.
0 commit comments