aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-23 20:36:58 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-23 20:36:58 +0800
commit139439dcdc14e448bfdbd509bb135faa92337a28 (patch)
tree1d05199126268c927ae9acdd55fa088c0300ec19 /p2p/server.go
parent9cf7913c61c6f9c1f36a44778a75e6a91a741be4 (diff)
parent6fb810adaa539a2fa97cf4481588b339ab5279ae (diff)
downloaddexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar.gz
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar.bz2
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar.lz
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar.xz
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.tar.zst
dexon-139439dcdc14e448bfdbd509bb135faa92337a28.zip
Merge pull request #1309 from fjl/p2p-fix-lookup-spin
p2p: throttle all discovery lookups
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 59b97a0aa..5eff70345 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -115,6 +115,7 @@ type Server struct {
ntab discoverTable
listener net.Listener
ourHandshake *protoHandshake
+ lastLookup time.Time
// These are for Peers, PeerCount (and nothing else).
peerOp chan peerOpFunc