File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
pallets/subtensor/src/subnets Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,11 @@ impl<T: Config> Pallet<T> {
262
262
263
263
// 5. Retrieve or initialize the VecDeque of commits for the hotkey.
264
264
let cur_block = Self :: get_current_block_as_u64 ( ) ;
265
- let cur_epoch = Self :: get_epoch_index ( netuid, cur_block) ;
265
+ let cur_epoch = match Self :: should_run_epoch ( netuid, commit_block) {
266
+ true => Self :: get_epoch_index ( netuid, cur_block) . saturating_add ( 1 ) ,
267
+ false => Self :: get_epoch_index ( netuid, cur_block) ,
268
+ } ;
269
+
266
270
CRV3WeightCommits :: < T > :: try_mutate ( netuid, cur_epoch, |commits| -> DispatchResult {
267
271
// 6. Verify that the number of unrevealed commits is within the allowed limit.
268
272
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220
220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221
221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222
222
// the compatible custom types.
223
- spec_version : 217 ,
223
+ spec_version : 218 ,
224
224
impl_version : 1 ,
225
225
apis : RUNTIME_API_VERSIONS ,
226
226
transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments