@@ -61,7 +61,6 @@ impl<T: Config> Pallet<T> {
6161
6262 let rho = Self :: get_rho ( netuid) ;
6363 let kappa = Self :: get_kappa ( netuid) ;
64- let difficulty = Self :: get_difficulty_as_u64 ( netuid) ;
6564 let immunity_period = Self :: get_immunity_period ( netuid) ;
6665 let max_allowed_validators = Self :: get_max_allowed_validators ( netuid) ;
6766 let min_allowed_weights = Self :: get_min_allowed_weights ( netuid) ;
@@ -74,6 +73,9 @@ impl<T: Config> Pallet<T> {
7473 let network_modality = <NetworkModality < T > >:: get ( netuid) ;
7574 let emission_values = Self :: get_emission_value ( netuid) ;
7675 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 ( ) ;
7779
7880 // DEPRECATED
7981 let network_connect: Vec < [ u16 ; 2 ] > = Vec :: < [ u16 ; 2 ] > :: new ( ) ;
@@ -84,7 +86,6 @@ impl<T: Config> Pallet<T> {
8486 return Some ( SubnetInfo {
8587 rho : rho. into ( ) ,
8688 kappa : kappa. into ( ) ,
87- difficulty : difficulty. into ( ) ,
8889 immunity_period : immunity_period. into ( ) ,
8990 netuid : netuid. into ( ) ,
9091 max_allowed_validators : max_allowed_validators. into ( ) ,
@@ -99,6 +100,10 @@ impl<T: Config> Pallet<T> {
99100 network_connect,
100101 emission_values : emission_values. into ( ) ,
101102 burn,
103+ difficulty : difficulty. into ( ) ,
104+ adjustment_alpha : adjustment_alpha. into ( ) ,
105+ bonds_moving_avg : bonds_moving_avg. into ( ) ,
106+
102107 owner : Self :: get_subnet_owner ( netuid) . into ( ) ,
103108 } ) ;
104109 }
@@ -132,7 +137,6 @@ impl<T: Config> Pallet<T> {
132137
133138 let rho = Self :: get_rho ( netuid) ;
134139 let kappa = Self :: get_kappa ( netuid) ;
135- let difficulty = Self :: get_difficulty_as_u64 ( netuid) ;
136140 let immunity_period = Self :: get_immunity_period ( netuid) ;
137141 let min_allowed_weights = Self :: get_min_allowed_weights ( netuid) ;
138142 let max_weights_limit = Self :: get_max_weight_limit ( netuid) ;
0 commit comments