aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-25 03:20:57 +0800
committerobscuren <geffobscura@gmail.com>2014-09-25 03:20:57 +0800
commit5cb4120ef517830e8c45007f138ffd343ccb164a (patch)
tree50d9bea15d48d5a9ce11ec9be2a36532fbbf5878 /peer.go
parent3aeba50c38e74bc1091895db1cb57e7d93864270 (diff)
downloadgo-tangerine-5cb4120ef517830e8c45007f138ffd343ccb164a.tar.gz
go-tangerine-5cb4120ef517830e8c45007f138ffd343ccb164a.tar.zst
go-tangerine-5cb4120ef517830e8c45007f138ffd343ccb164a.zip
queue get peers each 10 seconds
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index ef346d3ac..ede3ad4e4 100644
--- a/peer.go
+++ b/peer.go
@@ -311,7 +311,7 @@ func (p *Peer) writeMessage(msg *ethwire.Msg) {
func (p *Peer) HandleOutbound() {
// The ping timer. Makes sure that every 2 minutes a ping is send to the peer
pingTimer := time.NewTicker(pingPongTimer)
- serviceTimer := time.NewTicker(5 * time.Second)
+ serviceTimer := time.NewTicker(10 * time.Second)
out:
for {
@@ -346,7 +346,7 @@ out:
// posting or block posting
case <-serviceTimer.C:
- //p.QueueMessage(ethwire.NewMessage(ethwire.MsgGetPeersTy, ""))
+ p.QueueMessage(ethwire.NewMessage(ethwire.MsgGetPeersTy, ""))
case <-p.quit:
// Break out of the for loop if a quit message is posted