aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-04 00:30:37 +0800
committerzelig <viktor.tron@gmail.com>2014-07-04 00:30:37 +0800
commit90c2064640984be95e493c57c3dc8dd5134e23e9 (patch)
treed306c35791042278c4e8f831928f88bf66ba9cb3 /peer.go
parentc833c3fec8cd327e22d7a481e6e4b795f27eb1de (diff)
downloadgo-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar.gz
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar.bz2
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar.lz
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar.xz
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.tar.zst
go-tangerine-90c2064640984be95e493c57c3dc8dd5134e23e9.zip
peer constructors now set version string with ethereum.ClientIdentity().String()
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index 8e14c7460..a93d22d93 100644
--- a/peer.go
+++ b/peer.go
@@ -162,7 +162,7 @@ func NewPeer(conn net.Conn, ethereum *Ethereum, inbound bool) *Peer {
pubkey: pubkey,
blocksRequested: 10,
caps: ethereum.ServerCaps(),
- version: ethutil.Config.ClientString,
+ version: ethereum.ClientIdentity().String(),
}
}
@@ -175,7 +175,7 @@ func NewOutboundPeer(addr string, ethereum *Ethereum, caps Caps) *Peer {
connected: 0,
disconnect: 0,
caps: caps,
- version: ethutil.Config.ClientString,
+ version: ethereum.ClientIdentity().String(),
}
// Set up the connection in another goroutine so we don't block the main thread