aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 16:07:40 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 16:07:40 +0800
commit6593c6942454233f61d7d74f030a9075a84807cd (patch)
tree13ce91005e853412a88ae7a17ef5641559631744 /peer.go
parent8a2e50ab2a6c903a6ab3ab10a74c37e1f3b8f3f1 (diff)
parent3a9d7d318abb3cd01ecd012ae85da5e586436d65 (diff)
downloadgo-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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index fc3c7b1d5..587bc1974 100644
--- a/peer.go
+++ b/peer.go
@@ -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)