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