feat!: remove peer exchange from protocols to wait on by default

This is because peer exchange is still experimental and not enabled
on all prod fleets.

The issue is that we could be connected to a remote peer with relay/
filter/lightpush yet never resolve because peer exchange is missing.

This also shows the limit of this function logic which should be
addressed as we dive deeper in peer management.
This commit is contained in:
fryorcraken.eth 2022-12-15 14:26:57 +11:00
parent 68423196ec
commit 89571ff497
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 0 additions and 3 deletions

View File

@ -155,9 +155,6 @@ function getEnabledProtocols(waku: Waku): Protocols[] {
if (waku.lightPush) {
protocols.push(Protocols.LightPush);
}
if (waku.peerExchange) {
protocols.push(Protocols.PeerExchange);
}
return protocols;
}