Skip to content

Commit

Permalink
client/network: Stop sending noise legacy handshake (paritytech#7211)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mxinden authored and liuchengxu committed Oct 5, 2020
1 parent 4785616 commit f2a652d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/network/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ pub fn build_transport(

// Legacy noise configurations for backward compatibility.
let mut noise_legacy = noise::LegacyConfig::default();
noise_legacy.send_legacy_handshake = true;
noise_legacy.recv_legacy_handshake = true;

let mut xx_config = noise::NoiseConfig::xx(noise_keypair_spec);
Expand Down

0 comments on commit f2a652d

Please sign in to comment.