mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Update to libp2p v0.20.1 (#6465)
* Update to libp2p-0.20.0 * Update to `libp2p-0.20.1`. Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@ wasm-timer = "0.2"
|
||||
zeroize = "1.0.0"
|
||||
|
||||
[dependencies.libp2p]
|
||||
version = "0.19.1"
|
||||
version = "0.20.1"
|
||||
default-features = false
|
||||
features = ["identify", "kad", "mdns", "mplex", "noise", "ping", "tcp-async-std", "websocket", "yamux"]
|
||||
|
||||
@@ -71,7 +71,7 @@ features = ["identify", "kad", "mdns", "mplex", "noise", "ping", "tcp-async-std"
|
||||
async-std = "1.5"
|
||||
assert_matches = "1.3"
|
||||
env_logger = "0.7.0"
|
||||
libp2p = { version = "0.19.1", default-features = false, features = ["secio"] }
|
||||
libp2p = { version = "0.20.1", default-features = false, features = ["secio"] }
|
||||
quickcheck = "0.9.0"
|
||||
rand = "0.7.2"
|
||||
sp-keyring = { version = "2.0.0-rc4", path = "../../primitives/keyring" }
|
||||
|
||||
@@ -601,7 +601,7 @@ impl NetworkBehaviour for DiscoveryBehaviour {
|
||||
Ok(ok) => {
|
||||
let results = ok.records
|
||||
.into_iter()
|
||||
.map(|r| (r.key, r.value))
|
||||
.map(|r| (r.record.key, r.record.value))
|
||||
.collect();
|
||||
|
||||
DiscoveryOut::ValueFound(results)
|
||||
|
||||
@@ -19,7 +19,7 @@ parking_lot = "0.10.0"
|
||||
futures = "0.3.4"
|
||||
futures-timer = "3.0.1"
|
||||
rand = "0.7.2"
|
||||
libp2p = { version = "0.19.1", default-features = false }
|
||||
libp2p = { version = "0.20.1", default-features = false }
|
||||
sp-consensus = { version = "0.8.0-rc4", path = "../../../primitives/consensus/common" }
|
||||
sc-consensus = { version = "0.8.0-rc4", path = "../../../client/consensus/common" }
|
||||
sc-client-api = { version = "2.0.0-rc4", path = "../../api" }
|
||||
|
||||
Reference in New Issue
Block a user