From 92579435b6b5637d573bd2e0b7338791f7a768d4 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 11 Jun 2020 08:38:47 +0200 Subject: [PATCH] secio then noise (#213) * secio then noise much fewer peers on witti with noise first * comment --- libp2p/standard_setup.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libp2p/standard_setup.nim b/libp2p/standard_setup.nim index 9d16780..354caf1 100644 --- a/libp2p/standard_setup.nim +++ b/libp2p/standard_setup.nim @@ -28,8 +28,9 @@ proc newStandardSwitch*(privKey = none(PrivateKey), triggerSelf = false, gossip = false, secureManagers: openarray[SecureProtocol] = [ + # TODO investigate why we're getting fewer peers on public testnets with noise + SecureProtocol.Secio, SecureProtocol.Noise, # array cos order matters - SecureProtocol.Secio ], verifySignature = libp2p_pubsub_verify, sign = libp2p_pubsub_sign,