diff --git a/syncer/bootstrap.go b/syncer/bootstrap.go index fa13c4a..d31ce52 100644 --- a/syncer/bootstrap.go +++ b/syncer/bootstrap.go @@ -60,8 +60,14 @@ var ( // ZenBootstrapPeers is a list of peers for the Zen network. ZenBootstrapPeers = []string{ - "147.135.16.182:9881", - "147.135.39.109:9881", - "51.81.208.10:9881", + "141.94.161.198:9881", + "15.204.141.235:9881", + "51.79.16.87:9881", + "141.94.161.198:9881", + "31.208.123.47:9881", + "62.30.63.90:9881", + "162.19.232.38:9881", + "15.204.160.10:10881", + "51.81.56.133:9881", } ) diff --git a/syncer/syncer.go b/syncer/syncer.go index f4c9b77..e52c463 100644 --- a/syncer/syncer.go +++ b/syncer/syncer.go @@ -501,6 +501,7 @@ func (s *Syncer) peerLoop() error { } candidates := peersForConnect() if len(candidates) == 0 { + log.Debug("no peers to connect to") discoverPeers() continue } @@ -512,8 +513,10 @@ func (s *Syncer) peerLoop() error { // NOTE: we don't bother logging failure here, since it's common and // not particularly interesting or actionable ctx, cancel := context.WithTimeout(s.shutdownCtx, s.config.ConnectTimeout) - if _, err := s.Connect(ctx, p); err == nil { - s.log.Debug("connected to peer", zap.String("peer", p)) + if _, err := s.Connect(ctx, p); err != nil { + log.Debug("connected to peer", zap.String("peer", p)) + } else { + log.Debug("failed to connect to peer", zap.String("peer", p), zap.Error(err)) } cancel() lastTried[p] = time.Now()