mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +00:00
fix: peer exchange service is not required for clients
This commit is contained in:
parent
efb1036429
commit
32ac1c8d8e
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user