Merge branch 'main' into v2.0.2.3

This commit is contained in:
Cassandra Heart 2024-10-31 16:43:30 -05:00 committed by GitHub
commit 37a00b850f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import (
// can be contacted on. The "seen" events expire by default after 40 minutes
// (OwnObservedAddressTTL * ActivationThreshold). The are cleaned up during
// the GC rounds set by GCInterval.
var ActivationThresh = 4
var ActivationThresh = 1
// observedAddrManagerWorkerChannelSize defines how many addresses can be enqueued
// for adding to an ObservedAddrManager.

View File

@ -1046,6 +1046,10 @@ func discoverPeers(
wg := &sync.WaitGroup{}
defer wg.Wait()
for peer := range peerChan {
if len(h.Network().Peers()) >= 6 {
break
}
peer := peer
wg.Add(1)
go func() {