浏览代码

p2p/discover: bump maxBondingPingPongs to 16

This should increase the speed a bit because all findnode
results (up to 16) can be verified at the same time.
Felix Lange 10 年之前
父节点
当前提交
7fa2607bd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      p2p/discover/table.go

+ 1 - 1
p2p/discover/table.go

@@ -25,7 +25,7 @@ const (
 	hashBits   = len(common.Hash{}) * 8
 	hashBits   = len(common.Hash{}) * 8
 	nBuckets   = hashBits + 1 // Number of buckets
 	nBuckets   = hashBits + 1 // Number of buckets
 
 
-	maxBondingPingPongs = 10
+	maxBondingPingPongs = 16
 )
 )
 
 
 type Table struct {
 type Table struct {