From 8756678a8349de14574a09bf26374ce871bc4f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 21 Jan 2022 16:18:21 +0100 Subject: [PATCH] polkadot-test-service: Enable wasmtime feature (#4762) We use the `Compiled` wasm execution and for that the `wasmtime` needs to be enabled. --- polkadot/node/test/service/Cargo.toml | 4 ++-- polkadot/node/test/service/src/chain_spec.rs | 2 +- polkadot/node/test/service/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/node/test/service/Cargo.toml b/polkadot/node/test/service/Cargo.toml index d095b24a3c..b8b1a89eb5 100644 --- a/polkadot/node/test/service/Cargo.toml +++ b/polkadot/node/test/service/Cargo.toml @@ -48,7 +48,7 @@ sc-executor = { git = "https://github.com/paritytech/substrate", branch = "maste sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } -service = { package = "sc-service", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +sc-service = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, features = [ "wasmtime" ] } sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } @@ -64,4 +64,4 @@ substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch tokio = { version = "1.15", features = ["macros"] } [features] -runtime-metrics=["polkadot-test-runtime/runtime-metrics"] \ No newline at end of file +runtime-metrics=["polkadot-test-runtime/runtime-metrics"] diff --git a/polkadot/node/test/service/src/chain_spec.rs b/polkadot/node/test/service/src/chain_spec.rs index 933f3173ab..3004abae05 100644 --- a/polkadot/node/test/service/src/chain_spec.rs +++ b/polkadot/node/test/service/src/chain_spec.rs @@ -32,7 +32,7 @@ const DEFAULT_PROTOCOL_ID: &str = "dot"; /// The `ChainSpec` parameterized for polkadot test runtime. pub type PolkadotChainSpec = - service::GenericChainSpec; + sc_service::GenericChainSpec; /// Local testnet config (multivalidator Alice + Bob) pub fn polkadot_local_testnet_config() -> PolkadotChainSpec { diff --git a/polkadot/node/test/service/src/lib.rs b/polkadot/node/test/service/src/lib.rs index 1b865c61ef..8a6e6912a8 100644 --- a/polkadot/node/test/service/src/lib.rs +++ b/polkadot/node/test/service/src/lib.rs @@ -41,7 +41,7 @@ use sc_network::{ config::{NetworkConfiguration, TransportConfig}, multiaddr, }; -use service::{ +use sc_service::{ config::{DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, WasmExecutionMethod}, BasePath, Configuration, KeepBlocks, Role, RpcHandlers, TaskManager, TransactionStorageMode, };