aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-12 03:29:07 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-12 03:29:07 +0800
commit485e37e889d5dd2c0461d686b122e1beb6089c16 (patch)
treef608f1e146c0e1d5da3f741741dce929d2757a0a /p2p
parent587f748d929e0c76d9b43e74d70cafb8f614fad0 (diff)
downloaddexon-485e37e889d5dd2c0461d686b122e1beb6089c16.tar.gz
dexon-485e37e889d5dd2c0461d686b122e1beb6089c16.tar.zst
dexon-485e37e889d5dd2c0461d686b122e1beb6089c16.zip
Move MakeName to ethutil
Diffstat (limited to 'p2p')
-rw-r--r--p2p/server.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 34000cb4c..9762fcc6d 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"net"
- "runtime"
"sync"
"time"
@@ -33,13 +32,6 @@ const (
var srvlog = logger.NewLogger("P2P Server")
var srvjslog = logger.NewJsonLogger()
-// MakeName creates a node name that follows the ethereum convention
-// for such names. It adds the operation system name and Go runtime version
-// the name.
-func MakeName(name, version string) string {
- return fmt.Sprintf("%s/v%s/%s/%s", name, version, runtime.GOOS, runtime.Version())
-}
-
// Server manages all peer connections.
//
// The fields of Server are used as configuration parameters.
@@ -54,7 +46,7 @@ type Server struct {
MaxPeers int
// Name sets the node name of this server.
- // Use MakeName to create a name that follows existing conventions.
+ // Use ethutil.MakeName to create a name that follows existing conventions.
Name string
// Bootstrap nodes are used to establish connectivity