mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 22:17:58 +00:00
Remove transitional code wrt executor parameters (#2112)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user