@@ -426,40 +426,6 @@ pub mod pallet {
426426 Ok ( ( ) )
427427 }
428428
429- /// The extrinsic sets the adjustment beta for a subnet.
430- /// It is only callable by the root account or subnet owner.
431- /// The extrinsic will call the Subtensor pallet to set the adjustment beta.
432- #[ pallet:: call_index( 12 ) ]
433- #[ pallet:: weight( Weight :: from_parts( 26_890_000 , 0 )
434- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 3_u64 ) )
435- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1_u64 ) ) ) ]
436- pub fn sudo_set_max_weight_limit (
437- origin : OriginFor < T > ,
438- netuid : NetUid ,
439- max_weight_limit : u16 ,
440- ) -> DispatchResult {
441- let maybe_owner = pallet_subtensor:: Pallet :: < T > :: ensure_sn_owner_or_root_with_limits (
442- origin,
443- netuid,
444- & [ Hyperparameter :: MaxWeightLimit . into ( ) ] ,
445- ) ?;
446-
447- ensure ! (
448- pallet_subtensor:: Pallet :: <T >:: if_subnet_exist( netuid) ,
449- Error :: <T >:: SubnetDoesNotExist
450- ) ;
451- pallet_subtensor:: Pallet :: < T > :: set_max_weight_limit ( netuid, max_weight_limit) ;
452- pallet_subtensor:: Pallet :: < T > :: record_owner_rl (
453- maybe_owner,
454- netuid,
455- & [ Hyperparameter :: MaxWeightLimit . into ( ) ] ,
456- ) ;
457- log:: debug!(
458- "MaxWeightLimitSet( netuid: {netuid:?} max_weight_limit: {max_weight_limit:?} ) "
459- ) ;
460- Ok ( ( ) )
461- }
462-
463429 /// The extrinsic sets the immunity period for a subnet.
464430 /// It is only callable by the root account or subnet owner.
465431 /// The extrinsic will call the Subtensor pallet to set the immunity period.
@@ -1252,7 +1218,7 @@ pub mod pallet {
12521218 /// The extrinsic will call the Subtensor pallet to set the minimum delegate take.
12531219 #[ pallet:: call_index( 46 ) ]
12541220 #[ pallet:: weight( (
1255- Weight :: from_parts( 5_000_000 , 0 ) . saturating_add( T :: DbWeight :: get( ) . writes( 1_u64 ) ) ,
1221+ Weight :: from_parts( 7_885_000 , 0 ) . saturating_add( T :: DbWeight :: get( ) . writes( 1_u64 ) ) ,
12561222 DispatchClass :: Operational ,
12571223 Pays :: Yes
12581224 ) ) ]
@@ -1999,7 +1965,7 @@ pub mod pallet {
19991965 /// Only callable by root.
20001966 #[ pallet:: call_index( 74 ) ]
20011967 #[ pallet:: weight( (
2002- Weight :: from_parts( 5_771_000 , 0 )
1968+ Weight :: from_parts( 9_418_000 , 0 )
20031969 . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 0_u64 ) )
20041970 . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1_u64 ) ) ,
20051971 DispatchClass :: Operational
0 commit comments