aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r--p2p/discover/table.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index 1300fd01d..e8a219871 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -52,9 +52,8 @@ const (
bucketMinDistance = hashBits - nBuckets // Log distance of closest bucket
// IP address limits.
- // TODO(sonic): revert this change
- bucketIPLimit, bucketSubnet = 8, 24 // at most 2 addresses from the same /24
- tableIPLimit, tableSubnet = 16, 24
+ bucketIPLimit, bucketSubnet = 2, 24 // at most 2 addresses from the same /24
+ tableIPLimit, tableSubnet = 10, 24
maxFindnodeFailures = 5 // Nodes exceeding this limit are dropped
refreshInterval = 30 * time.Minute