Skip to content

Commit

Permalink
[substrate-apply]: humanode-peer: refactor(sc-executor): use wasm exe…
Browse files Browse the repository at this point in the history
…cutor builder instead of old apis #13740
  • Loading branch information
dmitrylavrenov committed Jan 8, 2024
1 parent 92c0c80 commit 2559710
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions crates/humanode-peer/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ type FrontierBackend = fc_db::Backend<Block>;
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 = sc_service::new_native_or_wasm_executor::<ExecutorDispatch>(&config.substrate);

let (_client, _backend, keystore_container, task_manager) =
sc_service::new_full_parts::<Block, RuntimeApi, _>(&config.substrate, None, executor)?;
Expand Down Expand Up @@ -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 = sc_service::new_native_or_wasm_executor(&config);

let (client, backend, keystore_container, task_manager) =
sc_service::new_full_parts::<Block, RuntimeApi, _>(
Expand Down

0 comments on commit 2559710

Please sign in to comment.