Skip to content

Commit

Permalink
cmd/bootnode: stop after generating/writing nodekey
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-vk committed Apr 24, 2017
1 parent d2fda73 commit ecec454
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func main() {
if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil {
utils.Fatalf("%v", err)
}
return
case *nodeKeyFile == "" && *nodeKeyHex == "":
utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key")
case *nodeKeyFile != "" && *nodeKeyHex != "":
Expand Down

0 comments on commit ecec454

Please sign in to comment.