difftreelog
chore return `DefaultRuntimeExecutor` to fix benchmarks
in: master
2 files changed
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -37,6 +37,8 @@
cli::{Cli, RelayChainCli, Subcommand},
service::{new_partial, start_node, start_dev_node},
};
+#[cfg(feature = "runtime-benchmarks")]
+use crate::chain_spec::default_runtime;
#[cfg(feature = "unique-runtime")]
use crate::service::UniqueRuntimeExecutor;
@@ -46,6 +48,9 @@
use crate::service::OpalRuntimeExecutor;
+#[cfg(feature = "runtime-benchmarks")]
+use crate::service::DefaultRuntimeExecutor;
+
use codec::Encode;
use cumulus_primitives_core::ParaId;
use cumulus_client_cli::generate_genesis_block;
node/cli/src/service.rsdiffbeforeafterboth83/// Opal native executor instance.83/// Opal native executor instance.84pub struct OpalRuntimeExecutor;84pub struct OpalRuntimeExecutor;8586#[cfg(all(feature = "unique-runtime", feature = "runtime-benchmarks"))]87pub type DefaultRuntimeExecutor = UniqueRuntimeExecutor;8889#[cfg(all(90 not(feature = "unique-runtime"),91 feature = "quartz-runtime",92 feature = "runtime-benchmarks"93))]94pub type DefaultRuntimeExecutor = QuartzRuntimeExecutor;9596#[cfg(all(97 not(feature = "unique-runtime"),98 not(feature = "quartz-runtime"),99 feature = "runtime-benchmarks"100))]101pub type DefaultRuntimeExecutor = OpalRuntimeExecutor;8510286#[cfg(feature = "unique-runtime")]103#[cfg(feature = "unique-runtime")]87impl NativeExecutionDispatch for UniqueRuntimeExecutor {104impl NativeExecutionDispatch for UniqueRuntimeExecutor {