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.
This commit is contained in:
Max Inden
2020-09-29 11:00:58 +02:00
committed by GitHub
parent 54c7e3e9fb
commit 5c0413aced
@@ -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);