From f65bc7c76a4e657a7c01ddb23ff6d9ebfc51b220 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Mon, 8 Jan 2024 13:17:31 +0300 Subject: [PATCH] [substrate-apply]: humanode-peer: refactor(sc-executor): use wasm executor builder instead of old apis #13740 --- crates/humanode-peer/src/service/mod.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/humanode-peer/src/service/mod.rs b/crates/humanode-peer/src/service/mod.rs index 61d7953e3..34b81c4b2 100644 --- a/crates/humanode-peer/src/service/mod.rs +++ b/crates/humanode-peer/src/service/mod.rs @@ -74,12 +74,7 @@ type FrontierBackend = fc_db::Backend; pub fn keystore_container( config: &Configuration, ) -> Result<(KeystoreContainer, TaskManager), ServiceError> { - let executor = Executor::new( - config.substrate.wasm_method, - config.substrate.default_heap_pages, - config.substrate.max_runtime_instances, - config.substrate.runtime_cache_size, - ); + let executor = Executor::new_native_or_wasm_executor(&config); let (_client, _backend, keystore_container, task_manager) = sc_service::new_full_parts::(&config.substrate, None, executor)?; @@ -126,12 +121,7 @@ pub async fn new_partial( }) .transpose()?; - let executor = Executor::new( - config.wasm_method, - config.default_heap_pages, - config.max_runtime_instances, - config.runtime_cache_size, - ); + let executor = Executor::new_native_or_wasm_executor(&config); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::(