diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-03 03:21:57 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-03 03:21:57 +0800 |
commit | e7b33e9ae796cd0ba4c840ee3fead85132ebdccd (patch) | |
tree | a833d9f66d175173fe57520b2b08ce45afbae86a /ethutil/common.go | |
parent | fb2488235a9cc187047810817ce3fa34c5087c67 (diff) | |
download | go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar.gz go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar.bz2 go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar.lz go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar.xz go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.tar.zst go-tangerine-e7b33e9ae796cd0ba4c840ee3fead85132ebdccd.zip |
Move p2p.MakeName to ethutil.MakeVersion
Diffstat (limited to 'ethutil/common.go')
-rw-r--r-- | ethutil/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/common.go b/ethutil/common.go index 9b66763b8..88f4cd189 100644 --- a/ethutil/common.go +++ b/ethutil/common.go @@ -13,6 +13,10 @@ import ( "github.com/kardianos/osext" ) +func MakeVersion(name, version string) string { + return fmt.Sprintf("%s/v%s/%s/%s", name, version, runtime.GOOS, runtime.Version()) +} + func DefaultAssetPath() string { var assetPath string pwd, _ := os.Getwd() |