mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
only attempt discv5 listener when no-discovery is not present (#3293)
This commit is contained in:
@@ -70,7 +70,7 @@ func (s *Service) Start() {
|
||||
return
|
||||
}
|
||||
s.host = h
|
||||
if s.cfg.BootstrapNodeAddr != "" {
|
||||
if s.cfg.BootstrapNodeAddr != "" && !s.cfg.NoDiscovery {
|
||||
listener, err := startDiscoveryV5(ipAddr, privKey, s.cfg)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("Failed to start discovery")
|
||||
|
||||
Reference in New Issue
Block a user