Update networking code to libp2p 0.14 (#4383)

* Entirely update substrate-telemetry to futures 0.3

* Add a Closed error

* Update to libp2p 0.14

* More work

* More work

* More work

* More work

* Fix warnings

* Remove unwrap()

* Work on tests fixing

* Fix network tests

* Fix external network tests

* Update libp2p and restore Yamux in discovery test

* Ignore DNS if initializatio nfails

* Restore variables ordering

* Forgot browser-utils

* Fix downfall after merge

* Fix tests
This commit is contained in:
Pierre Krieger
2020-01-09 19:01:23 +01:00
committed by Gavin Wood
parent 6e572a9477
commit ca997cf1e4
29 changed files with 842 additions and 812 deletions
+6 -9
View File
@@ -7,22 +7,22 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
bytes = "0.4.12"
bytes = "0.5.0"
derive_more = "0.99.2"
either = "1.5.3"
log = "0.4.8"
parking_lot = "0.9.0"
bitflags = "1.2.0"
fnv = "1.0.6"
futures = "0.1.29"
futures03 = { package = "futures", version = "0.3.1", features = ["compat"] }
futures = "0.3.1"
futures_codec = "0.3.3"
futures-timer = "0.4.0"
linked-hash-map = "0.5.2"
linked_hash_set = "0.1.3"
lru = "0.4.0"
rustc-hex = "2.0.1"
rand = "0.7.2"
libp2p = { version = "0.13.2", default-features = false, features = ["libp2p-websocket"] }
libp2p = { version = "0.14.0-alpha.1", default-features = false, features = ["libp2p-websocket"] }
fork-tree = { version = "2.0.0", path = "../../utils/fork-tree" }
sp-consensus = { version = "0.8", path = "../../primitives/consensus/common" }
sc-client = { version = "2.0.0", path = "../" }
@@ -39,9 +39,7 @@ serde_json = "1.0.41"
slog = { version = "2.5.2", features = ["nested-values"] }
slog_derive = "0.2.0"
smallvec = "0.6.10"
tokio-io = "0.1.12"
tokio = { version = "0.1.22", optional = true }
unsigned-varint = { version = "0.2.2", features = ["codec"] }
unsigned-varint = { version = "0.3.0", features = ["codec"] }
sp-keyring = { version = "2.0.0", optional = true, path = "../../primitives/keyring" }
substrate-test-client = { version = "2.0.0", optional = true, path = "../../test-utils/client" }
substrate-test-runtime-client = { version = "2.0.0", optional = true, path = "../../test-utils/runtime/client" }
@@ -57,8 +55,7 @@ sp-keyring = { version = "2.0.0", path = "../../primitives/keyring" }
quickcheck = "0.9.0"
rand = "0.7.2"
tempfile = "3.1.0"
tokio = "0.1.22"
[features]
default = []
test-helpers = ["sp-keyring", "substrate-test-runtime-client", "tokio"]
test-helpers = ["sp-keyring", "substrate-test-runtime-client"]