diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-12 16:07:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-12 16:07:40 +0800 |
commit | 6593c6942454233f61d7d74f030a9075a84807cd (patch) | |
tree | 13ce91005e853412a88ae7a17ef5641559631744 /peer.go | |
parent | 8a2e50ab2a6c903a6ab3ab10a74c37e1f3b8f3f1 (diff) | |
parent | 3a9d7d318abb3cd01ecd012ae85da5e586436d65 (diff) | |
download | go-tangerine-6593c6942454233f61d7d74f030a9075a84807cd.tar.gz go-tangerine-6593c6942454233f61d7d74f030a9075a84807cd.tar.zst go-tangerine-6593c6942454233f61d7d74f030a9075a84807cd.zip |
Merge branch 'develop' into interop
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) |