Upgrade to libp2p 0.15 (#4732)

* Fixes for libp2p 0.15

* More work

* Update libp2p

* Update to libp2p 0.15
This commit is contained in:
Pierre Krieger
2020-01-27 18:27:36 +01:00
committed by Gavin Wood
parent ed3da9f903
commit 5c8743510e
16 changed files with 332 additions and 237 deletions
+8
View File
@@ -837,6 +837,14 @@ ServiceBuilder<
let network_params = sc_network::config::Params {
roles: config.roles,
executor: {
let to_spawn_tx = to_spawn_tx.clone();
Some(Box::new(move |fut| {
if let Err(e) = to_spawn_tx.unbounded_send(fut) {
error!("Failed to spawn libp2p background task: {:?}", e);
}
}))
},
network_config: config.network.clone(),
chain: client.clone(),
finality_proof_provider,