aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 16:07:27 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 16:07:27 +0800
commit3a9d7d318abb3cd01ecd012ae85da5e586436d65 (patch)
tree833c5e876a1494d9abd79f01e58513ec1c51dfff /peer.go
parent1938bfcddfd2722880a692c59cad344b611711c8 (diff)
downloaddexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.gz
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.bz2
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.lz
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.xz
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.zst
dexon-3a9d7d318abb3cd01ecd012ae85da5e586436d65.zip
log changes
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 80975ff81..c7591ac31 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)