pub async fn executor_params_at_relay_parent(
relay_parent: Hash,
sender: &mut impl SubsystemSender<RuntimeApiMessage>,
) -> Result<ExecutorParams, Error>
Expand description
Requests executor parameters from the runtime effective at given relay-parent. First obtains
session index at the relay-parent, relying on the fact that it should be cached by the runtime
API caching layer even if the block itself has already been pruned. Then requests executor
parameters by session index.
Returns an error if failed to communicate to the runtime, or the parameters are not in the
storage, which should never happen.
Returns default execution parameters if the runtime doesn’t yet support SessionExecutorParams
API call.
Otherwise, returns execution parameters returned by the runtime.