Skip to content

Commit

Permalink
syncer: update zen bootstrap peer list
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jul 2, 2024
1 parent 16b6ee7 commit fbd7056
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
12 changes: 9 additions & 3 deletions syncer/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)
7 changes: 5 additions & 2 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ func (s *Syncer) peerLoop() error {
}
candidates := peersForConnect()
if len(candidates) == 0 {
log.Debug("no peers to connect to")
discoverPeers()
continue
}
Expand All @@ -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()
Expand Down

0 comments on commit fbd7056

Please sign in to comment.