Skip to content

Commit

Permalink
Remove coretime_ prefix from config params - part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Feb 2, 2024
1 parent 135e057 commit 8f88634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where
{
ParasShared::<T>::set_session_index(SESSION_INDEX);
let mut config = HostConfiguration::default();
config.coretime_cores = 1;
config.coretime_params.cores = 1;
ConfigurationPallet::<T>::force_set_active_config(config);
let mut parachains = ParachainsCache::new();
ParasPallet::<T>::initialize_para_now(
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/parachains/src/coretime/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod v_coretime {

let legacy_paras = paras::Parachains::<T>::get();
let config = <configuration::Pallet<T>>::config();
let total_core_count = config.coretime_cores + legacy_paras.len() as u32;
let total_core_count = config.coretime_params.cores + legacy_paras.len() as u32;

let dmp_queue_size =
crate::dmp::Pallet::<T>::dmq_contents(T::BrokerId::get().into()).len() as u32;
Expand Down

0 comments on commit 8f88634

Please sign in to comment.