secio then noise (#213)

* secio then noise

much fewer peers on witti with noise first

* comment
This commit is contained in:
Jacek Sieka 2020-06-11 08:38:47 +02:00 committed by GitHub
parent 1afec627c2
commit 92579435b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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,