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 {
565565 if stake > 0 {
566566 let mut hotkeys = StakingHotkeys :: < T > :: get ( & coldkey) ;
567567 storage_reads = storage_reads. saturating_add ( 1 ) ; // Read from StakingHotkeys storage
568-
568+
569569 // Add the hotkey if it's not already in the vector
570570 if !hotkeys. contains ( & hotkey) {
571571 hotkeys. push ( hotkey) ;
572572 keys_touched = keys_touched. saturating_add ( 1 ) ;
573-
573+
574574 // Update longest hotkey vector info
575575 if longest_hotkey_vector < hotkeys. len ( ) {
576576 longest_hotkey_vector = hotkeys. len ( ) ;
577577 longest_coldkey = Some ( coldkey. clone ( ) ) ;
578578 }
579-
579+
580580 // Update the StakingHotkeys storage
581581 StakingHotkeys :: < T > :: insert ( & coldkey, hotkeys) ;
582582 storage_writes = storage_writes. saturating_add ( 1 ) ; // Write to StakingHotkeys storage
583583 }
584-
584+
585585 // Accrue weight for reads and writes
586586 weight = weight. saturating_add ( T :: DbWeight :: get ( ) . reads_writes ( 2 , 1 ) ) ;
587587 }
@@ -603,4 +603,3 @@ pub fn migrate_populate_staking_hotkeys<T: Config>() -> Weight {
603603 Weight :: zero ( )
604604 }
605605}
606-
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
139139 // `spec_version`, and `authoring_version` are the same between Wasm and native.
140140 // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
141141 // the compatible custom types.
142- spec_version : 159 ,
142+ spec_version : 160 ,
143143 impl_version : 1 ,
144144 apis : RUNTIME_API_VERSIONS ,
145145 transaction_version : 1 ,
@@ -294,7 +294,7 @@ parameter_types! {
294294
295295 pub const RootEnterDuration : BlockNumber = 5 * 60 * 24 ; // 24 hours
296296
297- pub const RootExtendDuration : BlockNumber = 5 * 60 * 3 ; // 3 hours
297+ pub const RootExtendDuration : BlockNumber = 5 * 60 * 12 ; // 12 hours
298298
299299 pub const DisallowPermissionlessEntering : Option <Balance > = None ;
300300 pub const DisallowPermissionlessExtending : Option <Balance > = None ;
You can’t perform that action at this time.
0 commit comments