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"
|
2017-03-16 07:39:28 +00:00
|
|
|
"github.com/status-im/status-go/geth/params"
|
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-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"
|
|
|
|
}
|
2017-03-16 07:39:28 +00:00
|
|
|
fmt.Printf("%s\nVersion: %s\nGit Commit: %s\nBuild Date: %s\nNetwork: %s\n",
|
|
|
|
geth.ClientIdentifier, params.Version, gitCommit, buildStamp, netVersion)
|
2016-06-20 15:21:45 +00:00
|
|
|
}
|