diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-12 21:51:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-12 21:51:05 +0800 |
commit | 26a563642431806486b595f29e22ae833abb6a8c (patch) | |
tree | 3dfe8ab6581a01317dd4e37a88aacf3551535551 /p2p | |
parent | 4418e4ea6a9b8d648bcb7e7241b887cbab6936bc (diff) | |
parent | 3b3843e158d9ddbe76dcfa1e78977f0bd99a9142 (diff) | |
download | go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.gz go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.bz2 go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.lz go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.xz go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.zst go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.zip |
Merge branch 'develop' into rpcfrontier
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server.go | 10 |
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 |