Skip to content

Commit

Permalink
Remove transitional code wrt executor parameters (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpserrat authored Nov 1, 2023
1 parent b6965af commit 9987bbb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions polkadot/runtime/parachains/src/runtime_api_impl/v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,7 @@ pub fn get_session_disputes<T: disputes::Config>(
pub fn session_executor_params<T: session_info::Config>(
session_index: SessionIndex,
) -> Option<ExecutorParams> {
// This is to bootstrap the storage working around the runtime migration issue:
// https://github.com/paritytech/substrate/issues/9997
// After the bootstrap is complete (no less than 7 session passed with the runtime)
// this code should be replaced with a pure
// <session_info::Pallet<T>>::session_executor_params(session_index) call.
match <session_info::Pallet<T>>::session_executor_params(session_index) {
Some(ep) => Some(ep),
None => Some(ExecutorParams::default()),
}
<session_info::Pallet<T>>::session_executor_params(session_index)
}

/// Implementation of `unapplied_slashes` runtime API
Expand Down

0 comments on commit 9987bbb

Please sign in to comment.