difftreelog
Fix NativeExecutionDispatches
in: master
1 file changed
node/cli/src/service.rsdiffbeforeafterboth69pub struct QuartzRuntimeExecutor;69pub struct QuartzRuntimeExecutor;70pub struct OpalRuntimeExecutor;70pub struct OpalRuntimeExecutor;717172#[cfg(feature = "unique-runtime")]72impl NativeExecutionDispatch for UniqueRuntimeExecutor {73impl NativeExecutionDispatch for UniqueRuntimeExecutor {73 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;74 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;747581 }82 }82}83}838485#[cfg(feature = "quartz-runtime")]84impl NativeExecutionDispatch for QuartzRuntimeExecutor {86impl NativeExecutionDispatch for QuartzRuntimeExecutor {85 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;87 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;868887 fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {89 fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {88 unique_runtime::api::dispatch(method, data)90 quartz_runtime::api::dispatch(method, data)89 }91 }909291 fn native_version() -> sc_executor::NativeVersion {93 fn native_version() -> sc_executor::NativeVersion {92 unique_runtime::native_version()94 quartz_runtime::native_version()93 }95 }94}96}959798#[cfg(feature = "opal-runtime")]96impl NativeExecutionDispatch for OpalRuntimeExecutor {99impl NativeExecutionDispatch for OpalRuntimeExecutor {97 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;100 type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;9810199 fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {102 fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {100 unique_runtime::api::dispatch(method, data)103 opal_runtime::api::dispatch(method, data)101 }104 }102105103 fn native_version() -> sc_executor::NativeVersion {106 fn native_version() -> sc_executor::NativeVersion {104 unique_runtime::native_version()107 opal_runtime::native_version()105 }108 }106}109}107110