Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f1a09b4

Browse files
committed
second round of comments from the PR on substrate
1 parent b05c239 commit f1a09b4

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

client/network/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,12 @@ impl<Block: BlockT> WaitForParachainTargetBlock<Block> {
479479
"cumulus-parachain-wait-for-target-block",
480480
None,
481481
async move {
482-
tracing::debug!(
482+
tracing::info!(
483483
target: LOG_TARGET,
484484
"waiting for target block in a background task...",
485485
);
486486
Self::wait_for_target_block(sender, para_id, relay_chain_interface).await;
487-
tracing::debug!(target: LOG_TARGET, "target block reached",);
487+
tracing::info!(target: LOG_TARGET, "target block reached",);
488488
}
489489
.boxed(),
490490
);
@@ -548,7 +548,7 @@ impl<Block: BlockT> WaitForParachainTargetBlock<Block> {
548548
let _ = sender.send(target_header);
549549
break
550550
}
551-
tracing::debug!(
551+
tracing::info!(
552552
target: LOG_TARGET,
553553
"waiting for relay chain sync to complete......",
554554
);

parachain-template/node/src/service.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ use sc_consensus::ImportQueue;
2626
use sc_executor::NativeElseWasmExecutor;
2727
use sc_network::NetworkService;
2828
use sc_network_common::service::NetworkBlock;
29-
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
29+
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager, WarpSyncParams};
3030
use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
3131
use sp_keystore::SyncCryptoStorePtr;
3232
use substrate_prometheus_endpoint::Registry;
3333

3434
use polkadot_service::CollatorPair;
35-
use sc_network_common::sync::warp::WarpSyncParams;
3635

3736
/// Native executor type.
3837
pub struct ParachainNativeExecutor;

polkadot-parachain/src/service.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ use sc_consensus::{
4747
};
4848
use sc_executor::WasmExecutor;
4949
use sc_network::NetworkService;
50-
use sc_network_common::{service::NetworkBlock, sync::warp::WarpSyncParams};
51-
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
50+
use sc_network_common::service::NetworkBlock;
51+
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager, WarpSyncParams};
5252
use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
5353
use sp_api::{ApiExt, ConstructRuntimeApi};
5454
use sp_consensus::CacheKeyId;
@@ -404,7 +404,7 @@ where
404404
let validator = parachain_config.role.is_authority();
405405
let prometheus_registry = parachain_config.prometheus_registry().cloned();
406406
let transaction_pool = params.transaction_pool.clone();
407-
let import_queue = cumulus_client_service::SharedImportQueue::new(params.import_queue);
407+
let import_queue_service = params.import_queue.service();
408408
let warp_sync_params =
409409
match cumulus_client_network::WaitForParachainTargetBlock::<Block>::warp_sync_get(
410410
para_id,

test/service/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ use sc_client_api::execution_extensions::ExecutionStrategies;
5151
use sc_consensus::ImportQueue;
5252
use sc_network::{multiaddr, NetworkBlock, NetworkService};
5353
use sc_network_common::{
54-
config::TransportConfig, service::NetworkStateInfo, sync::warp::WarpSyncParams,
54+
config::TransportConfig, service::NetworkStateInfo
5555
};
5656
use sc_service::{
5757
config::{
5858
BlocksPruning, DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, NetworkConfiguration,
5959
OffchainWorkerConfig, PruningMode, WasmExecutionMethod,
6060
},
6161
BasePath, ChainSpec, Configuration, Error as ServiceError, PartialComponents, Role,
62-
RpcHandlers, TFullBackend, TFullClient, TaskManager,
62+
RpcHandlers, TFullBackend, TFullClient, TaskManager, WarpSyncParams
6363
};
6464
use sp_arithmetic::traits::SaturatedConversion;
6565
use sp_blockchain::HeaderBackend;

0 commit comments

Comments
 (0)