This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Upgrade to libp2p 0.51.3 #13587
Merged
paritytech-processbot
merged 61 commits into
paritytech:master
from
melekes:anton/13537-upgrade-to-libp2p-0.51.0
May 12, 2023
Merged
Upgrade to libp2p 0.51.3 #13587
Changes from 10 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
1f838db
client/network: upgrade to libp2p 0.51.0
melekes a96ec02
make discovery.rs compile
melekes 1feeea5
make peer_info.rs compile
melekes 7f5bd59
changes to notifications and request-response proto
melekes 6fa1fec
make service.rs compile
melekes 84fa16e
towards making request_responses.rs compile
melekes b469184
make request_responses.rs compile
melekes 82381e7
make request_responses.rs compile
melekes 5d47761
fix notifications/behaviour.rs tests
melekes 683f7d0
fix warnings
melekes 88faef0
remove old code
melekes 0e4e650
allow deprecated code (temporary)
melekes 44734ce
upgrade to libp2p 0.51.1
melekes 38db38c
add TODO for behaviour tests
melekes a02f891
return empty vec if peer_id is absent
melekes dfd5c3e
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 7a981ab
update comment to reflect new defaults
melekes 943c031
Revert "update comment to reflect new defaults"
melekes 17365d1
remove config.rs (from wrong merge)
melekes 6b87f23
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 4fc9c96
upgrade to libp2p 0.51.2
melekes fd6429d
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 890ce96
fix formatting
melekes df205b6
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes c1cf2e8
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 31f5653
use handle_pending_outbound_connection in networt_state RPC
melekes ae2c0c4
update deps
melekes 3f0ca7e
use re-exports when we use other libp2p packages
melekes 83f5373
Apply suggestions from code review
melekes 854509b
format code
melekes 3a865c5
handle potential errors in network_state RPC
melekes 7571f9d
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 9a8861f
only update libp2p crate
melekes 8ee6f65
update libp2p-core
melekes 29caff6
fix docs
melekes c69c0a6
use libp2p-identity instead of libp2p
melekes 866d522
Update client/network/src/discovery.rs
melekes a3c9038
Merge remote-tracking branch 'origin/master' into anton/13537-upgrade…
1068d77
Merge remote-tracking branch 'origin/master' into anton/13537-upgrade…
724188d
update Cargo.lock
melekes 60e1634
add comment for per_connection_event_buffer_size
melekes bb1b5db
fix link format
melekes f5a2828
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes b3d43e3
update Cargo.lock
melekes b675df1
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 6544dd4
upgrade to libp2p 0.51.3
melekes 9e25820
deprecate mplex
melekes 39ffe48
Revert "deprecate mplex"
melekes 0bf1bfa
Revert "upgrade to libp2p 0.51.3"
melekes 3c69044
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 979d076
use new libp2p version in `statement` crate
melekes 82b3956
pin version temporarily
melekes 90691b9
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 1c35b82
libp2p 0.51.3
melekes 7c7ff40
deprecate mplex
melekes bb161c7
Merge branch 'master' into anton/13537-upgrade-to-libp2p-0.51.0
melekes 0630e6d
deprecate legacy noise handshake
melekes 5551d23
fix build error
melekes 97e75cf
update libp2p-identity
melekes a7a5b8e
enable libp2p-identity:ed25519 feature in sc-consensus
melekes 0a0defc
enable ed25519 for peerset as well
melekes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we attempt to get more addresses from kademlia and mdns for a peer if there's no ID (
maybe_peer
isNone
)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there easy way to do it? I'd probably not bother with it and just let the next random walk find new peers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code already does this. no need to do anything.
I was asking if it even makes sense to probe kademlia / mdns if peerID is empty. I guess it won't hurt. Otherwise we can just return empty
Vec
ifmaybe_peer.is_none()
in the beginning of this function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would err on the side of caution and keep the old behavior for now at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in a02f891