Merge pull request #1104 from harmony-ek/fix_version_flag

Fix -version flag
pull/1093/head
Eugene Kim 5 years ago committed by GitHub
commit b4292eb629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      cmd/harmony/main.go

@ -133,10 +133,6 @@ var (
)
func initSetup() {
if *versionFlag {
printVersion(os.Args[0])
}
// Set port and ip to global config.
nodeconfig.GetDefaultConfig().Port = *port
nodeconfig.GetDefaultConfig().IP = *ip
@ -380,6 +376,10 @@ func main() {
flag.Var(&utils.BootNodes, "bootnodes", "a list of bootnode multiaddress (delimited by ,)")
flag.Parse()
if *versionFlag {
printVersion(os.Args[0])
}
// If FN node running, they should either specify blsPrivateKey or the file with passphrase
if *blsKeyFile == "" || *blsPass == "" {
fmt.Println("Internal nodes need to have pass to decrypt blskey")

Loading…
Cancel
Save