Update to libp2p 0.10 (#2945)

* Update to libp2p 0.10

* Bump zeroize in substrate-network
This commit is contained in:
Pierre Krieger
2019-06-25 15:56:25 +02:00
committed by GitHub
parent 770b94c20c
commit 846941550d
14 changed files with 462 additions and 414 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ linked_hash_set = "0.1.3"
lru-cache = "0.1.1"
rustc-hex = "2.0"
rand = "0.6"
libp2p = { version = "0.9.1", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
libp2p = { version = "0.10.0", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
fork-tree = { path = "../../core/util/fork-tree" }
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
consensus = { package = "substrate-consensus-common", path = "../../core/consensus/common" }
@@ -41,7 +41,7 @@ test_client = { package = "substrate-test-client", path = "../../core/test-clien
test-client = { package = "substrate-test-runtime-client", path = "../../core/test-runtime/client", optional = true }
erased-serde = "0.3.9"
void = "1.0"
zeroize = "0.6.0"
zeroize = "0.9.0"
[dev-dependencies]
env_logger = { version = "0.6" }
+1 -1
View File
@@ -213,7 +213,7 @@ impl<TInner: NetworkBehaviour> NetworkBehaviour for UserBehaviourWrap<TInner> {
}
fn poll(
&mut self,
params: &mut PollParameters
params: &mut impl PollParameters
) -> Async<
NetworkBehaviourAction<
<<Self::ProtocolsHandler as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InEvent,
@@ -932,7 +932,7 @@ where
fn poll(
&mut self,
_params: &mut PollParameters,
_params: &mut impl PollParameters,
) -> Async<
NetworkBehaviourAction<
CustomProtoHandlerIn<TMessage>,
@@ -157,7 +157,7 @@ impl<T: CustomMessage + Send + 'static> NetworkBehaviour for CustomProtoWithAddr
fn poll(
&mut self,
params: &mut PollParameters
params: &mut impl PollParameters
) -> Async<
NetworkBehaviourAction<
<<Self::ProtocolsHandler as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InEvent,
+1 -1
View File
@@ -253,7 +253,7 @@ where TSubstream: AsyncRead + AsyncWrite {
fn poll(
&mut self,
params: &mut PollParameters
params: &mut impl PollParameters
) -> Async<
NetworkBehaviourAction<
<<Self::ProtocolsHandler as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InEvent,
+1 -1
View File
@@ -150,7 +150,7 @@ where
fn poll(
&mut self,
params: &mut PollParameters,
params: &mut impl PollParameters,
) -> Async<
NetworkBehaviourAction<
<Self::ProtocolsHandler as ProtocolsHandler>::InEvent,
@@ -335,7 +335,7 @@ ProtocolBehaviour<B, S, H> {
fn poll(
&mut self,
params: &mut PollParameters,
params: &mut impl PollParameters,
) -> Async<
NetworkBehaviourAction<
<<Self::ProtocolsHandler as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InEvent,