mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 10:21:05 +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>(
|
pub fn session_executor_params<T: session_info::Config>(
|
||||||
session_index: SessionIndex,
|
session_index: SessionIndex,
|
||||||
) -> Option<ExecutorParams> {
|
) -> Option<ExecutorParams> {
|
||||||
// This is to bootstrap the storage working around the runtime migration issue:
|
<session_info::Pallet<T>>::session_executor_params(session_index)
|
||||||
// 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()),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implementation of `unapplied_slashes` runtime API
|
/// Implementation of `unapplied_slashes` runtime API
|
||||||
|
|||||||
Reference in New Issue
Block a user