2016-06-15 19:50:35 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2016-10-13 11:46:54 +00:00
|
|
|
"github.com/status-im/status-go/geth"
|
2016-06-20 14:47:10 +00:00
|
|
|
)
|
2016-06-15 19:50:35 +00:00
|
|
|
|
2016-08-07 20:09:13 +00:00
|
|
|
var (
|
2016-09-08 09:45:12 +00:00
|
|
|
gitCommit = "rely on linker: -ldflags -X main.GitCommit"
|
|
|
|
buildStamp = "rely on linker: -ldflags -X main.buildStamp"
|
2016-08-07 20:09:13 +00:00
|
|
|
)
|
|
|
|
|
2016-06-20 15:21:45 +00:00
|
|
|
func main() {
|
2016-12-07 21:07:08 +00:00
|
|
|
verString := fmt.Sprintf("%d.%d.%d", geth.VersionMajor, geth.VersionMinor, geth.VersionPatch)
|
|
|
|
if geth.VersionMeta != "" {
|
|
|
|
verString += "-" + geth.VersionMeta
|
2016-09-21 12:22:42 +00:00
|
|
|
}
|
|
|
|
if gitCommit != "" {
|
|
|
|
verString += "-" + gitCommit[:8]
|
|
|
|
}
|
2016-10-13 11:46:54 +00:00
|
|
|
netVersion := "mainnet"
|
2016-12-07 21:07:08 +00:00
|
|
|
if geth.UseTestnet {
|
2016-10-13 11:46:54 +00:00
|
|
|
netVersion = "testnet"
|
|
|
|
}
|
|
|
|
fmt.Printf("Status\nGit Commit: %s\nBuild Time: %s\nVersion: %s\nNetwork: %s\n",
|
|
|
|
gitCommit, buildStamp, verString, netVersion)
|
2016-06-20 15:21:45 +00:00
|
|
|
}
|