cmd/bootnode: fix exit behavior with -genkey (#20110)

pull/20145/head
Darrel Herbst 5 years ago committed by Felix Lange
parent 7f5f62aaa0
commit c713ea7c22
  1. 2
      cmd/bootnode/main.go

@ -70,7 +70,9 @@ func main() {
if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil {
utils.Fatalf("%v", err)
}
if !*writeAddr {
return
}
case *nodeKeyFile == "" && *nodeKeyHex == "":
utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key")
case *nodeKeyFile != "" && *nodeKeyHex != "":

Loading…
Cancel
Save