diff options
author | Sonic <sonic@dexon.org> | 2018-11-28 16:35:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | cb16fb0f211ba35220910e68ad3b21e2c3698b72 (patch) | |
tree | 3c92d56497006db19045e5089d982b57149902e9 /p2p/discover/table.go | |
parent | 69f196ff89626fc365c15a6c7b5db81a48b592a4 (diff) | |
download | dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar.gz dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar.bz2 dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar.lz dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar.xz dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.tar.zst dexon-cb16fb0f211ba35220910e68ad3b21e2c3698b72.zip |
p2p/discover: increase IP address limits (#60)
Diffstat (limited to 'p2p/discover/table.go')
-rw-r--r-- | p2p/discover/table.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/p2p/discover/table.go b/p2p/discover/table.go index e8a219871..1300fd01d 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -52,8 +52,9 @@ const ( bucketMinDistance = hashBits - nBuckets // Log distance of closest bucket // IP address limits. - bucketIPLimit, bucketSubnet = 2, 24 // at most 2 addresses from the same /24 - tableIPLimit, tableSubnet = 10, 24 + // TODO(sonic): revert this change + bucketIPLimit, bucketSubnet = 8, 24 // at most 2 addresses from the same /24 + tableIPLimit, tableSubnet = 16, 24 maxFindnodeFailures = 5 // Nodes exceeding this limit are dropped refreshInterval = 30 * time.Minute |