mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
only attempt discv5 listener when no-discovery is not present (#3293)
This commit is contained in:
parent
0353cc533e
commit
b04bfb87a8
@ -70,7 +70,7 @@ func (s *Service) Start() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.host = h
|
s.host = h
|
||||||
if s.cfg.BootstrapNodeAddr != "" {
|
if s.cfg.BootstrapNodeAddr != "" && !s.cfg.NoDiscovery {
|
||||||
listener, err := startDiscoveryV5(ipAddr, privKey, s.cfg)
|
listener, err := startDiscoveryV5(ipAddr, privKey, s.cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Error("Failed to start discovery")
|
log.WithError(err).Error("Failed to start discovery")
|
||||||
|
Loading…
Reference in New Issue
Block a user