File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ pub struct SubnetHyperparams {
5050 serving_rate_limit : Compact < u64 > ,
5151 max_validators : Compact < u16 > ,
5252 adjustment_alpha : Compact < u64 > ,
53+ difficulty : Compact < u64 > ,
5354}
5455
5556impl < T : Config > Pallet < T > {
@@ -151,6 +152,7 @@ impl<T: Config> Pallet<T> {
151152 let serving_rate_limit = Self :: get_serving_rate_limit ( netuid) ;
152153 let max_validators = Self :: get_max_allowed_validators ( netuid) ;
153154 let adjustment_alpha = Self :: get_adjustment_alpha ( netuid) ;
155+ let difficulty = Self :: get_difficulty_as_u64 ( netuid) ;
154156
155157
156158 return Some ( SubnetHyperparams {
@@ -174,7 +176,8 @@ impl<T: Config> Pallet<T> {
174176 max_regs_per_block : max_regs_per_block. into ( ) ,
175177 serving_rate_limit : serving_rate_limit. into ( ) ,
176178 max_validators : max_validators. into ( ) ,
177- adjustment_alpha : adjustment_alpha. into ( )
179+ adjustment_alpha : adjustment_alpha. into ( ) ,
180+ difficulty : difficulty. into ( )
178181 } ) ;
179182 }
180183}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
121121 // `spec_version`, and `authoring_version` are the same between Wasm and native.
122122 // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
123123 // the compatible custom types.
124- spec_version : 173 ,
124+ spec_version : 174 ,
125125 impl_version : 1 ,
126126 apis : RUNTIME_API_VERSIONS ,
127127 transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments