fix: peer exchange service is not required for clients

This commit is contained in:
Richard Ramos 2023-05-17 10:56:31 -04:00 committed by Andrea Maria Piana
parent efb1036429
commit 32ac1c8d8e
1 changed files with 0 additions and 6 deletions

View File

@ -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)) 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 { if cfg.LightClient {