Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/network: Stop sending noise legacy handshake #7211

Merged
1 commit merged into from
Sep 29, 2020

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Sep 25, 2020

Stop sending noise legacy handshake payloads, i.e. length-prefixed protobuf
payloads inside a length-prefixed noise frame. Receiving of such legacy
handshakes is still supported, thus backwards compatibility is given.

Fixes #7175.

Release note suggestion:

Stop sending noise legacy handshake payloads, i.e. length-prefixed protobuf payloads inside a length-prefixed noise frame. Receiving of such legacy handshakes is still supported, thus backwards compatibility is given to all clients running with libp2p >= v0.22.0. Clients previously running with libp2p < v0.22.0 should first update to previous Substrate versions, which support the new handshake format, before updating to this Substrate version.

Stop sending legacy handshake payloads, i.e. length-prefixed protobuf
payloads inside a length-prefixed noise frame. Receiving of such legacy
handshakes is still supported, thus backwards compatibility is given.
@mxinden mxinden added A0-please_review Pull request needs code review. B5-clientnoteworthy C1-low PR touches the given topic and has a low impact on builders. labels Sep 25, 2020
@mxinden
Copy link
Contributor Author

mxinden commented Sep 28, 2020

This pull request has been running on kusama-sentry-ew1-1 since 2020-09-25.

The percentage of filled peer slots is unchanged.

image

The number of incoming connection errors has increased. While this change looks drastic on the graph below, it is below 100 incoming-handshake errors per 5 minutes. I assume that these errors are due to nodes running Polkadot < v0.8.19 that try to connect.

image

Dialing failures are unchanged.

image

With the above in mind, anyone objecting merging this into master?

//CC @tomaka @romanb

@mxinden
Copy link
Contributor Author

mxinden commented Sep 29, 2020

bot merge

@ghost
Copy link

ghost commented Sep 29, 2020

Trying merge.

@ghost ghost merged commit 4ff236f into paritytech:master Sep 29, 2020
liuchengxu pushed a commit to liuchengxu/substrate that referenced this pull request Oct 5, 2020
Stop sending legacy handshake payloads, i.e. length-prefixed protobuf
payloads inside a length-prefixed noise frame. Receiving of such legacy
handshakes is still supported, thus backwards compatibility is given.
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client/network: Stop sending noise legacy handshake
3 participants