good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit ecec454e authored by Bas van Kervel's avatar Bas van Kervel
Browse files

cmd/bootnode: stop after generating/writing nodekey

parent d2fda73a
Branches
Tags
No related merge requests found
...@@ -68,6 +68,7 @@ func main() { ...@@ -68,6 +68,7 @@ func main() {
if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil { if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil {
utils.Fatalf("%v", err) utils.Fatalf("%v", err)
} }
return
case *nodeKeyFile == "" && *nodeKeyHex == "": case *nodeKeyFile == "" && *nodeKeyHex == "":
utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key") utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key")
case *nodeKeyFile != "" && *nodeKeyHex != "": case *nodeKeyFile != "" && *nodeKeyHex != "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment