aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-17 19:08:16 +0800
committerobscuren <geffobscura@gmail.com>2014-03-17 19:08:16 +0800
commit344e827061c896a17124a65686bdc3fbbd03d7bb (patch)
tree6627309683424ebabe49b988fdba69b2e5337c4f /peer.go
parent826c827e6b1922604601f15361c962aef6f7f1a0 (diff)
downloadgo-tangerine-344e827061c896a17124a65686bdc3fbbd03d7bb.tar.gz
go-tangerine-344e827061c896a17124a65686bdc3fbbd03d7bb.tar.zst
go-tangerine-344e827061c896a17124a65686bdc3fbbd03d7bb.zip
Added client string to configuration
Clients can set their own client string which will be send to connected peers during the handshake.
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index 4e927ada4..24a5e97c9 100644
--- a/peer.go
+++ b/peer.go
@@ -7,7 +7,6 @@ import (
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
"net"
- "runtime"
"strconv"
"strings"
"sync/atomic"
@@ -158,7 +157,7 @@ func NewOutboundPeer(addr string, ethereum *Ethereum, caps Caps) *Peer {
connected: 0,
disconnect: 0,
caps: caps,
- Version: fmt.Sprintf("/Ethereum(G) v%s/%s", ethutil.Config.Ver, runtime.GOOS),
+ Version: ethutil.Config.ClientString,
}
// Set up the connection in another goroutine so we don't block the main thread