Skip to content

Commit

Permalink
Remove coretime_ prefix from config params
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Feb 2, 2024
1 parent fc59106 commit e8d179c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polkadot/runtime/parachains/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ impl<T: paras_inherent::Config> BenchBuilder<T> {
// We are currently in Session 0, so these changes will take effect in Session 2.
Self::setup_para_ids(used_cores);
configuration::ActiveConfig::<T>::mutate(|c| {
c.coretime_params.coretime_cores = used_cores;
c.coretime_params.cores = used_cores;
});

let validator_ids = Self::generate_validator_pairs(self.max_validators());
Expand Down Expand Up @@ -710,7 +710,7 @@ impl<T: paras_inherent::Config> BenchBuilder<T> {
let cores = (0..used_cores)
.into_iter()
.map(|i| {
let ttl = configuration::Pallet::<T>::config().coretime_params.coretime_ttl;
let ttl = configuration::Pallet::<T>::config().coretime_params.ttl;
// Load an assignment into provider so that one is present to pop
let assignment = <T as scheduler::Config>::AssignmentProvider::get_mock_assignment(
CoreIndex(i),
Expand All @@ -725,7 +725,7 @@ impl<T: paras_inherent::Config> BenchBuilder<T> {
let cores = (0..used_cores)
.into_iter()
.map(|i| {
let ttl = configuration::Pallet::<T>::config().coretime_params.coretime_ttl;
let ttl = configuration::Pallet::<T>::config().coretime_params.ttl;
// Load an assignment into provider so that one is present to pop
let assignment =
<T as scheduler::Config>::AssignmentProvider::get_mock_assignment(
Expand Down

0 comments on commit e8d179c

Please sign in to comment.