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

Commit

Permalink
second round of comments from the PR on substrate
Browse files Browse the repository at this point in the history
  • Loading branch information
samelamin committed Dec 13, 2022
1 parent b05c239 commit f1a09b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions client/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ impl<Block: BlockT> WaitForParachainTargetBlock<Block> {
"cumulus-parachain-wait-for-target-block",
None,
async move {
tracing::debug!(
tracing::info!(
target: LOG_TARGET,
"waiting for target block in a background task...",
);
Self::wait_for_target_block(sender, para_id, relay_chain_interface).await;
tracing::debug!(target: LOG_TARGET, "target block reached",);
tracing::info!(target: LOG_TARGET, "target block reached",);
}
.boxed(),
);
Expand Down Expand Up @@ -548,7 +548,7 @@ impl<Block: BlockT> WaitForParachainTargetBlock<Block> {
let _ = sender.send(target_header);
break
}
tracing::debug!(
tracing::info!(
target: LOG_TARGET,
"waiting for relay chain sync to complete......",
);
Expand Down
3 changes: 1 addition & 2 deletions parachain-template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ use sc_consensus::ImportQueue;
use sc_executor::NativeElseWasmExecutor;
use sc_network::NetworkService;
use sc_network_common::service::NetworkBlock;
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager, WarpSyncParams};
use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
use sp_keystore::SyncCryptoStorePtr;
use substrate_prometheus_endpoint::Registry;

use polkadot_service::CollatorPair;
use sc_network_common::sync::warp::WarpSyncParams;

/// Native executor type.
pub struct ParachainNativeExecutor;
Expand Down
6 changes: 3 additions & 3 deletions polkadot-parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ use sc_consensus::{
};
use sc_executor::WasmExecutor;
use sc_network::NetworkService;
use sc_network_common::{service::NetworkBlock, sync::warp::WarpSyncParams};
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
use sc_network_common::service::NetworkBlock;
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager, WarpSyncParams};
use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
use sp_api::{ApiExt, ConstructRuntimeApi};
use sp_consensus::CacheKeyId;
Expand Down Expand Up @@ -404,7 +404,7 @@ where
let validator = parachain_config.role.is_authority();
let prometheus_registry = parachain_config.prometheus_registry().cloned();
let transaction_pool = params.transaction_pool.clone();
let import_queue = cumulus_client_service::SharedImportQueue::new(params.import_queue);
let import_queue_service = params.import_queue.service();
let warp_sync_params =
match cumulus_client_network::WaitForParachainTargetBlock::<Block>::warp_sync_get(
para_id,
Expand Down
4 changes: 2 additions & 2 deletions test/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ use sc_client_api::execution_extensions::ExecutionStrategies;
use sc_consensus::ImportQueue;
use sc_network::{multiaddr, NetworkBlock, NetworkService};
use sc_network_common::{
config::TransportConfig, service::NetworkStateInfo, sync::warp::WarpSyncParams,
config::TransportConfig, service::NetworkStateInfo
};
use sc_service::{
config::{
BlocksPruning, DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, NetworkConfiguration,
OffchainWorkerConfig, PruningMode, WasmExecutionMethod,
},
BasePath, ChainSpec, Configuration, Error as ServiceError, PartialComponents, Role,
RpcHandlers, TFullBackend, TFullClient, TaskManager,
RpcHandlers, TFullBackend, TFullClient, TaskManager, WarpSyncParams
};
use sp_arithmetic::traits::SaturatedConversion;
use sp_blockchain::HeaderBackend;
Expand Down

0 comments on commit f1a09b4

Please sign in to comment.