Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 75 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,11 @@ linked-hash-map = { version = "0.5.4" }
linked_hash_set = { version = "0.1.4" }
linregress = { version = "0.5.1" }
lite-json = { version = "0.2.0", default-features = false }
<<<<<<< HEAD
litep2p = { version = "0.9.5", features = ["websocket"] }
=======
litep2p = { version = "0.13.2", features = ["rsa", "websocket"] }
>>>>>>> a5473371 (Upgrade litep2p v0.13.0 -> v0.13.2 (#11204))
log = { version = "0.4.22", default-features = false }
macro_magic = { version = "0.5.1" }
maplit = { version = "1.0.2" }
Expand Down
14 changes: 14 additions & 0 deletions prdoc/pr_11204.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: Upgrade litep2p v0.13.0 -> v0.13.1
doc:
- audience: Node Dev
description: |-
This PR brings litep2p v0.13.1 to polkadot-sdk. The improvements include:

1. When dialing remote peers, all addresses from the DHT are tried, starting from the public addresses. Before litep2p v0.13.1, only up to 8 addresses were tried, leading to dial failures when due to misconfiguration there was a lot of private addresses in the DHT.
2. Protocols are now notified about connected peers before the library user, fixing failures in opening substreams when the user command arrived before the connection event.
3. Ping protocol implementation now conforms to the spec. This improves the connection stability between polkadot-sdk and [smoldot](https://github.com/smol-dot/smoldot) dramatically. Before this PR, smoldot always disconnected polkadot-sdk peers every 15 seconds for 5 seconds due to failed pings.
crates:
- name: sc-network
bump: minor
- name: sc-network-types
bump: minor
Loading