good morning!!!!

Skip to content
Snippets Groups Projects
Commit 04b6e413 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Encode caps as byte

parent aa934157
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ func (p *Peer) writeMessage(msg *ethwire.Msg) { ...@@ -184,7 +184,7 @@ func (p *Peer) writeMessage(msg *ethwire.Msg) {
func (p *Peer) HandleOutbound() { func (p *Peer) HandleOutbound() {
// The ping timer. Makes sure that every 2 minutes a ping is send to the peer // The ping timer. Makes sure that every 2 minutes a ping is send to the peer
pingTimer := time.NewTicker(2 * time.Minute) pingTimer := time.NewTicker(2 * time.Minute)
serviceTimer := time.NewTicker(5 * time.Second) serviceTimer := time.NewTicker(5 * time.Minute)
out: out:
for { for {
select { select {
...@@ -412,7 +412,7 @@ func (p *Peer) Stop() { ...@@ -412,7 +412,7 @@ func (p *Peer) Stop() {
func (p *Peer) pushHandshake() error { func (p *Peer) pushHandshake() error {
msg := ethwire.NewMessage(ethwire.MsgHandshakeTy, []interface{}{ 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) p.QueueMessage(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment