Remove transitional code wrt executor parameters (#2112)

This commit is contained in:
jserrat
2023-11-01 13:11:35 -03:00
committed by GitHub
parent b6965af493
commit 9987bbb1d2
@@ -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