From 8b085e2b197ec52741f92bcd3b606a3a3c25b55a Mon Sep 17 00:00:00 2001 From: Tin Chung <56880684+chungquantin@users.noreply.github.com> Date: Wed, 14 Aug 2024 22:44:23 +0700 Subject: [PATCH] chore(upgrade): add feature gate to the unified host functions Co-authored-by: Peter White --- node/src/service.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/src/service.rs b/node/src/service.rs index cd108228..c4cc0fbe 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -38,6 +38,10 @@ use sp_keystore::KeystorePtr; use sp_runtime::{app_crypto::AppCrypto, traits::BlakeTwo256}; use substrate_prometheus_endpoint::Registry; +#[cfg(not(feature = "runtime-benchmarks"))] +type HostFunctions = cumulus_client_service::ParachainHostFunctions; + +#[cfg(feature = "runtime-benchmarks")] type HostFunctions = ( cumulus_client_service::ParachainHostFunctions, frame_benchmarking::benchmarking::HostFunctions,