@@ -61,6 +61,7 @@ impl<T: Config> Pallet<T> {
6161
6262 let rho = Self :: get_rho ( netuid) ;
6363 let kappa = Self :: get_kappa ( netuid) ;
64+ let difficulty: Compact < u64 > = Self :: get_difficulty_as_u64 ( netuid) . into ( ) ;
6465 let immunity_period = Self :: get_immunity_period ( netuid) ;
6566 let max_allowed_validators = Self :: get_max_allowed_validators ( netuid) ;
6667 let min_allowed_weights = Self :: get_min_allowed_weights ( netuid) ;
@@ -73,9 +74,6 @@ impl<T: Config> Pallet<T> {
7374 let network_modality = <NetworkModality < T > >:: get ( netuid) ;
7475 let emission_values = Self :: get_emission_value ( netuid) ;
7576 let burn: Compact < u64 > = Self :: get_burn_as_u64 ( netuid) . into ( ) ;
76- let adjustment_alpha: Compact < u64 > = Self :: get_adjustment_alpha ( netuid) . into ( ) ;
77- let difficulty: Compact < u64 > = Self :: get_difficulty ( netuid) . into ( ) ;
78- let bonds_moving_avg: Compact < u64 > = Self :: get_bonds_moving_average ( netuid) . into ( ) ;
7977
8078 // DEPRECATED
8179 let network_connect: Vec < [ u16 ; 2 ] > = Vec :: < [ u16 ; 2 ] > :: new ( ) ;
@@ -86,6 +84,7 @@ impl<T: Config> Pallet<T> {
8684 return Some ( SubnetInfo {
8785 rho : rho. into ( ) ,
8886 kappa : kappa. into ( ) ,
87+ difficulty : difficulty. into ( ) ,
8988 immunity_period : immunity_period. into ( ) ,
9089 netuid : netuid. into ( ) ,
9190 max_allowed_validators : max_allowed_validators. into ( ) ,
@@ -100,10 +99,6 @@ impl<T: Config> Pallet<T> {
10099 network_connect,
101100 emission_values : emission_values. into ( ) ,
102101 burn,
103- difficulty : difficulty. into ( ) ,
104- adjustment_alpha : adjustment_alpha. into ( ) ,
105- bonds_moving_avg : bonds_moving_avg. into ( ) ,
106-
107102 owner : Self :: get_subnet_owner ( netuid) . into ( ) ,
108103 } ) ;
109104 }
0 commit comments