diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-22 14:27:14 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-13 18:11:44 +0800 |
commit | 9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6 (patch) | |
tree | 1fd4f8a425c125ae653b3bd93fa53a2a9a6feb47 | |
parent | 22631478cadc0f6a21a219af4399b86619240606 (diff) | |
download | go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar.gz go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar.bz2 go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar.lz go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar.xz go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.tar.zst go-tangerine-9ae4bba0bb7ddf004f54e7e7e2a18f021f4a7cd6.zip |
Revert "p2p/discover: increase IP address limits (#60)"
This reverts commit 3ca44e556bd9561b0c6c64c7d3a4f95726c78be8.
-rw-r--r-- | p2p/discover/table.go | 5 |
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 |