Skip to content

Commit

Permalink
Try fix dev node paritytech/substrate#12828
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed May 23, 2023
1 parent d07016f commit f80e7b9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions node/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ where
let import_queue_service = import_queue.service();

let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
sc_service::build_network(cumulus_client_service::BuildNetworkParams {
cumulus_client_service::build_network(cumulus_client_service::BuildNetworkParams {
parachain_config: &parachain_config,
client: client.clone(),
transaction_pool: transaction_pool.clone(),
Expand Down Expand Up @@ -708,16 +708,15 @@ where
} = new_partial::<RuntimeApi, Executor>(&config, eth_rpc_config)?;

let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
sc_service::build_network(cumulus_client_service::BuildNetworkParams {
parachain_config: &config,
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
client: client.clone(),
transaction_pool: transaction_pool.clone(),
para_id,
spawn_handle: task_manager.spawn_handle(),
relay_chain_interface: relay_chain_interface.clone(),
import_queue,
})
.await?;
block_announce_validator_builder: None,
warp_sync_params: None,
})?;

if config.offchain_worker.enabled {
let offchain_workers = Arc::new(sc_offchain::OffchainWorkers::new_with_options(
Expand Down Expand Up @@ -808,8 +807,8 @@ where
force_authoring,
backoff_authoring_blocks,
keystore: keystore_container.sync_keystore(),
sync_oracle: network.clone(),
justification_sync_link: network.clone(),
sync_oracle: sync_service.clone(),
justification_sync_link: sync_service.clone(),
// We got around 500ms for proposing
block_proposal_slot_portion: cumulus_client_consensus_aura::SlotProportion::new(
1f32 / 24f32,
Expand Down

0 comments on commit f80e7b9

Please sign in to comment.