Update to integrate network fix from Substrate (#184)

This commit is contained in:
Bastian Köcher
2020-08-06 22:05:45 +02:00
committed by GitHub
parent dd7c741b53
commit 8fae39d331
2 changed files with 157 additions and 155 deletions
+154 -154
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -142,7 +142,7 @@ pub fn run_collator(
let transaction_pool = params.transaction_pool.clone();
let mut task_manager = params.task_manager;
let import_queue = params.import_queue;
let (network, network_status_sinks, system_rpc_tx) =
let (network, network_status_sinks, system_rpc_tx, start_network) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &parachain_config,
client: client.clone(),
@@ -232,6 +232,8 @@ pub fn run_collator(
.spawn("polkadot", polkadot_future);
}
start_network.start_network();
Ok((task_manager, client))
}