From 6b71e471db64640273b20f9afc2005bb406bc735 Mon Sep 17 00:00:00 2001 From: nanocryk <6422796+nanocryk@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:55:18 +0100 Subject: [PATCH] cleanup --- client/node-common/src/service.rs | 48 ++----------------------------- node/src/service.rs | 3 ++ 2 files changed, 5 insertions(+), 46 deletions(-) diff --git a/client/node-common/src/service.rs b/client/node-common/src/service.rs index c934ce736..0047c6a01 100644 --- a/client/node-common/src/service.rs +++ b/client/node-common/src/service.rs @@ -75,25 +75,7 @@ where pub fn new_partial( config: &Configuration, -) -> Result< - // PartialComponents< - // ParachainClient, - // ParachainBackend, - // SelectChain, - // sc_consensus::DefaultImportQueue, - // sc_transaction_pool::FullPool< - // Block, - // ParachainClient, - // >, - // ( - // ParachainBlockImport, - // Option, - // Option, - // ), - // >, - NewPartial, - sc_service::Error, -> +) -> Result, sc_service::Error> where Block: cumulus_primitives_core::BlockT, ParachainNativeExecutor: NativeExecutionDispatch + 'static, @@ -136,8 +118,7 @@ where .with_runtime_cache_size(config.runtime_cache_size) .build(); - let executor: ParachainExecutor = - ParachainExecutor::new_with_wasm_executor(wasm); + let executor = ParachainExecutor::new_with_wasm_executor(wasm); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( @@ -164,31 +145,6 @@ where client.clone(), ); - // let block_import = ParachainBlockImport::new(client.clone(), backend.clone()); - - // let import_queue = nimbus_consensus::import_queue( - // client.clone(), - // block_import.clone(), - // move |_, _| async move { - // let time = sp_timestamp::InherentDataProvider::from_system_time(); - - // Ok((time,)) - // }, - // &task_manager.spawn_essential_handle(), - // config.prometheus_registry(), - // false, - // )?; - - // Ok(PartialComponents { - // backend, - // client, - // import_queue, - // keystore_container, - // task_manager, - // transaction_pool, - // select_chain, - // other: (block_import, telemetry, telemetry_worker_handle), - // }) Ok(NewPartial { client, backend, diff --git a/node/src/service.rs b/node/src/service.rs index 07567c0d7..bbf6d8132 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -151,6 +151,9 @@ pub fn new_partial( let block_import = ParachainBlockImport::new(client.clone(), backend.clone()); + // The nimbus import queue ONLY checks the signature correctness + // Any other checks corresponding to the author-correctness should be done + // in the runtime let import_queue = nimbus_consensus::import_queue( client.clone(), block_import.clone(),