mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-28 20:06:24 +00:00
Refs #1130
This commit is contained in:
+3
-10
@@ -564,16 +564,9 @@ func (r *PEXReactor) crawlPeers() {
|
||||
r.book.MarkAttempt(pi.Addr)
|
||||
continue
|
||||
}
|
||||
}
|
||||
// Crawl the connected peers asking for more addresses
|
||||
for _, pi := range peerInfos {
|
||||
// We will wait a minimum period of time before crawling peers again
|
||||
if now.Sub(pi.LastAttempt) >= defaultCrawlPeerInterval {
|
||||
peer := r.Switch.Peers().Get(pi.Addr.ID)
|
||||
if peer != nil {
|
||||
r.RequestAddrs(peer)
|
||||
}
|
||||
}
|
||||
// Ask for more addresses
|
||||
peer := r.Switch.Peers().Get(pi.Addr.ID)
|
||||
r.RequestAddrs(peer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user