Skip to content

Commit

Permalink
chore(upgrade): add feature gate to the unified host functions
Browse files Browse the repository at this point in the history
Co-authored-by: Peter White <[email protected]>
  • Loading branch information
chungquantin and peterwht authored Aug 14, 2024
1 parent 76b0712 commit 8b085e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8b085e2

Please sign in to comment.