Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
cmd/bootnode: fix exit behavior with -genkey (ethereum#20110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dherbst authored and elizabethengelman committed Dec 20, 2019
1 parent 8ba6c63 commit 4a2c02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func main() {
if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil {
utils.Fatalf("%v", err)
}
return
if !*writeAddr {
return
}
case *nodeKeyFile == "" && *nodeKeyHex == "":
utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key")
case *nodeKeyFile != "" && *nodeKeyHex != "":
Expand Down

0 comments on commit 4a2c02d

Please sign in to comment.