File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -565,23 +565,23 @@ pub fn migrate_populate_staking_hotkeys<T: Config>() -> Weight {
565
565
if stake > 0 {
566
566
let mut hotkeys = StakingHotkeys :: < T > :: get ( & coldkey) ;
567
567
storage_reads = storage_reads. saturating_add ( 1 ) ; // Read from StakingHotkeys storage
568
-
568
+
569
569
// Add the hotkey if it's not already in the vector
570
570
if !hotkeys. contains ( & hotkey) {
571
571
hotkeys. push ( hotkey) ;
572
572
keys_touched = keys_touched. saturating_add ( 1 ) ;
573
-
573
+
574
574
// Update longest hotkey vector info
575
575
if longest_hotkey_vector < hotkeys. len ( ) {
576
576
longest_hotkey_vector = hotkeys. len ( ) ;
577
577
longest_coldkey = Some ( coldkey. clone ( ) ) ;
578
578
}
579
-
579
+
580
580
// Update the StakingHotkeys storage
581
581
StakingHotkeys :: < T > :: insert ( & coldkey, hotkeys) ;
582
582
storage_writes = storage_writes. saturating_add ( 1 ) ; // Write to StakingHotkeys storage
583
583
}
584
-
584
+
585
585
// Accrue weight for reads and writes
586
586
weight = weight. saturating_add ( T :: DbWeight :: get ( ) . reads_writes ( 2 , 1 ) ) ;
587
587
}
@@ -603,4 +603,3 @@ pub fn migrate_populate_staking_hotkeys<T: Config>() -> Weight {
603
603
Weight :: zero ( )
604
604
}
605
605
}
606
-
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
139
139
// `spec_version`, and `authoring_version` are the same between Wasm and native.
140
140
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
141
141
// the compatible custom types.
142
- spec_version : 159 ,
142
+ spec_version : 160 ,
143
143
impl_version : 1 ,
144
144
apis : RUNTIME_API_VERSIONS ,
145
145
transaction_version : 1 ,
@@ -294,7 +294,7 @@ parameter_types! {
294
294
295
295
pub const RootEnterDuration : BlockNumber = 5 * 60 * 24 ; // 24 hours
296
296
297
- pub const RootExtendDuration : BlockNumber = 5 * 60 * 3 ; // 3 hours
297
+ pub const RootExtendDuration : BlockNumber = 5 * 60 * 12 ; // 12 hours
298
298
299
299
pub const DisallowPermissionlessEntering : Option <Balance > = None ;
300
300
pub const DisallowPermissionlessExtending : Option <Balance > = None ;
You can’t perform that action at this time.
0 commit comments