aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-03 03:06:37 +0800
committerobscuren <geffobscura@gmail.com>2014-02-03 03:06:37 +0800
commit04b6e413d99c9d8c2fa4c06fa3e7822700209bc6 (patch)
treef99ed95cbde9a491b5e2b921d43992bdcb1e1691 /peer.go
parentaa9341570b8e63c907c0f9d917508610c7daa1ae (diff)
downloadgo-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar.gz
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar.bz2
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar.lz
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar.xz
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.tar.zst
go-tangerine-04b6e413d99c9d8c2fa4c06fa3e7822700209bc6.zip
Encode caps as byte
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 0f6afebfe..80cca50c0 100644
--- a/peer.go
+++ b/peer.go
@@ -184,7 +184,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(2 * time.Minute)
- serviceTimer := time.NewTicker(5 * time.Second)
+ serviceTimer := time.NewTicker(5 * time.Minute)
out:
for {
select {
@@ -412,7 +412,7 @@ func (p *Peer) Stop() {
func (p *Peer) pushHandshake() error {
msg := ethwire.NewMessage(ethwire.MsgHandshakeTy, []interface{}{
- uint32(0), uint32(0), "/Ethereum(G) v0.0.1/", p.caps, p.port,
+ uint32(0), uint32(0), "/Ethereum(G) v0.0.1/", byte(p.caps), p.port,
})
p.QueueMessage(msg)