From 5c0413acedb4bc21a740d25360c87559d5a58659 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Tue, 29 Sep 2020 11:00:58 +0200 Subject: [PATCH] client/network: Stop sending noise legacy handshake (#7211) 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. --- substrate/client/network/src/transport.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/substrate/client/network/src/transport.rs b/substrate/client/network/src/transport.rs index 626f84b6b5..a18aa3d56f 100644 --- a/substrate/client/network/src/transport.rs +++ b/substrate/client/network/src/transport.rs @@ -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);