Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zen bootstrap peer list #66

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading