diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-12 16:07:27 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-12 16:07:27 +0800 |
commit | 3a9d7d318abb3cd01ecd012ae85da5e586436d65 (patch) | |
tree | 833c5e876a1494d9abd79f01e58513ec1c51dfff /peer.go | |
parent | 1938bfcddfd2722880a692c59cad344b611711c8 (diff) | |
download | go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.gz go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.zst go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.zip |
log changes
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -153,6 +153,7 @@ func NewPeer(conn net.Conn, ethereum *Ethereum, inbound bool) *Peer { pubkey: pubkey, blocksRequested: 10, caps: ethereum.ServerCaps(), + version: ethutil.Config.ClientString, } } @@ -579,7 +580,7 @@ func (p *Peer) pushHandshake() error { pubkey := keyRing.PublicKey msg := ethwire.NewMessage(ethwire.MsgHandshakeTy, []interface{}{ - uint32(ProtocolVersion), uint32(0), p.version, byte(p.caps), p.port, pubkey[1:], + uint32(ProtocolVersion), uint32(0), []byte(p.version), byte(p.caps), p.port, pubkey[1:], }) p.QueueMessage(msg) |