git.delta.rocks / unique-network / refs/commits / c388a1ae9b7a

difftreelog

chore return `DefaultRuntimeExecutor` to fix benchmarks

Grigoriy Simonov2022-10-26parent: #3a3ad6b.patch.diff
in: master

2 files changed

modifiednode/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;
modifiednode/cli/src/service.rsdiffbeforeafterboth
83/// Opal native executor instance.83/// Opal native executor instance.
84pub struct OpalRuntimeExecutor;84pub struct OpalRuntimeExecutor;
85
86#[cfg(all(feature = "unique-runtime", feature = "runtime-benchmarks"))]
87pub type DefaultRuntimeExecutor = UniqueRuntimeExecutor;
88
89#[cfg(all(
90 not(feature = "unique-runtime"),
91 feature = "quartz-runtime",
92 feature = "runtime-benchmarks"
93))]
94pub type DefaultRuntimeExecutor = QuartzRuntimeExecutor;
95
96#[cfg(all(
97 not(feature = "unique-runtime"),
98 not(feature = "quartz-runtime"),
99 feature = "runtime-benchmarks"
100))]
101pub type DefaultRuntimeExecutor = OpalRuntimeExecutor;
85102
86#[cfg(feature = "unique-runtime")]103#[cfg(feature = "unique-runtime")]
87impl NativeExecutionDispatch for UniqueRuntimeExecutor {104impl NativeExecutionDispatch for UniqueRuntimeExecutor {