aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/udp.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-12 18:59:52 +0800
committerFelix Lange <fjl@twurst.com>2015-02-13 18:39:31 +0800
commit82f0bd9009d8d577c86e800e9673a1972117113d (patch)
tree9ff7257fa03b2b17650c9453d121a27937e36af9 /p2p/discover/udp.go
parentd0a2e655c9599f462bb20bd49bc69b8e1e330a21 (diff)
downloaddexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.gz
dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.zst
dexon-82f0bd9009d8d577c86e800e9673a1972117113d.zip
p2p/discover: code review fixes
Diffstat (limited to 'p2p/discover/udp.go')
-rw-r--r--p2p/discover/udp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go
index 4ad5d9cc4..1f91641f3 100644
--- a/p2p/discover/udp.go
+++ b/p2p/discover/udp.go
@@ -28,7 +28,7 @@ var (
const (
respTimeout = 300 * time.Millisecond
sendTimeout = 300 * time.Millisecond
- expiration = 3 * time.Second
+ expiration = 20 * time.Second
refreshInterval = 1 * time.Hour
)
@@ -185,7 +185,7 @@ func (t *udp) findnode(to *Node, target NodeID) ([]*Node, error) {
nodes = append(nodes, n)
}
}
- return nreceived == bucketSize
+ return nreceived >= bucketSize
})
t.send(to, findnodePacket, findnode{