2018-07-19 21:16:48 +00:00
|
|
|
package version
|
|
|
|
|
2018-08-09 10:36:47 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AppName represents the application name as the 'user agent' on the larger Ethereum network.
|
|
|
|
const AppName = "Ethermint"
|
|
|
|
|
2018-07-19 21:16:48 +00:00
|
|
|
// Version contains the application semantic version.
|
|
|
|
//
|
|
|
|
// TODO: How do we want to version this being that an initial Ethermint has
|
|
|
|
// been developed?
|
|
|
|
const Version = "0.0.0"
|
|
|
|
|
|
|
|
// GitCommit contains the git SHA1 short hash set by build flags.
|
|
|
|
var GitCommit = ""
|
2018-08-09 10:36:47 +00:00
|
|
|
|
|
|
|
// ClientVersion returns the full version string for identification on the larger Ethereum network.
|
|
|
|
func ClientVersion() string {
|
|
|
|
return fmt.Sprintf("%s/%s+%s/%s/%s", AppName, Version, GitCommit, runtime.GOOS, runtime.Version())
|
|
|
|
}
|