difftreelog
fix(node) try-runtime build
in: master
1 file changed
node/cli/src/command.rsdiffbeforeafterboth413 Some(Subcommand::TryRuntime(cmd)) => {413 Some(Subcommand::TryRuntime(cmd)) => {414 use std::{future::Future, pin::Pin};414 use std::{future::Future, pin::Pin};415 use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};415 use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};416 use try_runtime_cli::block_building_info::timestamp_with_aura_info;416417417 let runner = cli.create_runner(cmd)?;418 let runner = cli.create_runner(cmd)?;418419425 let task_manager =426 let task_manager =426 sc_service::TaskManager::new(runner.config().tokio_handle.clone(), *registry)427 sc_service::TaskManager::new(runner.config().tokio_handle.clone(), *registry)427 .map_err(|e| format!("Error: {:?}", e))?;428 .map_err(|e| format!("Error: {:?}", e))?;429 let info_provider = Some(timestamp_with_aura_info(12000));428430429 runner.async_run(|config| -> Result<(Pin<Box<dyn Future<Output = _>>>, _)> {431 runner.async_run(|config| -> Result<(Pin<Box<dyn Future<Output = _>>>, _)> {430 Ok((432 Ok((433 RuntimeId::Unique => Box::pin(cmd.run::<Block, ExtendedHostFunctions<435 RuntimeId::Unique => Box::pin(cmd.run::<Block, ExtendedHostFunctions<434 sp_io::SubstrateHostFunctions,436 sp_io::SubstrateHostFunctions,435 <UniqueRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,437 <UniqueRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,436 >>()),438 >, _>(info_provider)),437439438 #[cfg(feature = "quartz-runtime")]440 #[cfg(feature = "quartz-runtime")]439 RuntimeId::Quartz => Box::pin(cmd.run::<Block, ExtendedHostFunctions<441 RuntimeId::Quartz => Box::pin(cmd.run::<Block, ExtendedHostFunctions<440 sp_io::SubstrateHostFunctions,442 sp_io::SubstrateHostFunctions,441 <QuartzRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,443 <QuartzRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,442 >>()),444 >, _>(info_provider)),443445444 RuntimeId::Opal => Box::pin(cmd.run::<Block, ExtendedHostFunctions<446 RuntimeId::Opal => Box::pin(cmd.run::<Block, ExtendedHostFunctions<445 sp_io::SubstrateHostFunctions,447 sp_io::SubstrateHostFunctions,446 <OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,448 <OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,447 >>()),449 >, _>(info_provider)),448 runtime_id => return Err(no_runtime_err!(runtime_id).into()),450 runtime_id => return Err(no_runtime_err!(runtime_id).into()),449 },451 },450 task_manager,452 task_manager,