From ecec454e92537c9c5e6969e589e7ffcf40e4c8e8 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Mon, 24 Apr 2017 10:40:20 +0200 Subject: cmd/bootnode: stop after generating/writing nodekey --- cmd/bootnode/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go index a5e82d145..e1734d89a 100644 --- a/cmd/bootnode/main.go +++ b/cmd/bootnode/main.go @@ -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 != "": -- cgit v1.2.3