From 32ac1c8d8e02c38032f18a64597c11e5694a4a9b Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 17 May 2023 10:56:31 -0400 Subject: [PATCH] fix: peer exchange service is not required for clients --- wakuv2/waku.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wakuv2/waku.go b/wakuv2/waku.go index 0b2ef8f91..d8109914a 100644 --- a/wakuv2/waku.go +++ b/wakuv2/waku.go @@ -277,12 +277,6 @@ func New(nodeKey string, fleet string, cfg *Config, logger *zap.Logger, appDB *s } opts = append(opts, node.WithDiscoveryV5(uint(cfg.UDPPort), bootnodes, cfg.AutoUpdate)) - - // Peer exchange requires DiscV5 to run (might change in future versions of the protocol) - if cfg.PeerExchange { - opts = append(opts, node.WithPeerExchange()) - } - } if cfg.LightClient {