Skip to content

Commit f80e7b9

Browse files
committed
Try fix dev node paritytech/substrate#12828
1 parent d07016f commit f80e7b9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

node/src/service/mod.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ where
322322
let import_queue_service = import_queue.service();
323323

324324
let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
325-
sc_service::build_network(cumulus_client_service::BuildNetworkParams {
325+
cumulus_client_service::build_network(cumulus_client_service::BuildNetworkParams {
326326
parachain_config: &parachain_config,
327327
client: client.clone(),
328328
transaction_pool: transaction_pool.clone(),
@@ -708,16 +708,15 @@ where
708708
} = new_partial::<RuntimeApi, Executor>(&config, eth_rpc_config)?;
709709

710710
let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) =
711-
sc_service::build_network(cumulus_client_service::BuildNetworkParams {
712-
parachain_config: &config,
711+
sc_service::build_network(sc_service::BuildNetworkParams {
712+
config: &config,
713713
client: client.clone(),
714714
transaction_pool: transaction_pool.clone(),
715-
para_id,
716715
spawn_handle: task_manager.spawn_handle(),
717-
relay_chain_interface: relay_chain_interface.clone(),
718716
import_queue,
719-
})
720-
.await?;
717+
block_announce_validator_builder: None,
718+
warp_sync_params: None,
719+
})?;
721720

722721
if config.offchain_worker.enabled {
723722
let offchain_workers = Arc::new(sc_offchain::OffchainWorkers::new_with_options(
@@ -808,8 +807,8 @@ where
808807
force_authoring,
809808
backoff_authoring_blocks,
810809
keystore: keystore_container.sync_keystore(),
811-
sync_oracle: network.clone(),
812-
justification_sync_link: network.clone(),
810+
sync_oracle: sync_service.clone(),
811+
justification_sync_link: sync_service.clone(),
813812
// We got around 500ms for proposing
814813
block_proposal_slot_portion: cumulus_client_consensus_aura::SlotProportion::new(
815814
1f32 / 24f32,

0 commit comments

Comments
 (0)