diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-04-24 16:40:20 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-04-24 16:40:20 +0800 |
commit | ecec454e92537c9c5e6969e589e7ffcf40e4c8e8 (patch) | |
tree | edb18531d034e4a870195802c124f94ec645bcb9 /cmd/bootnode/main.go | |
parent | d2fda73ad7f4771dadb265d1cbfaecaaabb2cb42 (diff) | |
download | dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar.gz dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar.bz2 dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar.lz dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar.xz dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.tar.zst dexon-ecec454e92537c9c5e6969e589e7ffcf40e4c8e8.zip |
cmd/bootnode: stop after generating/writing nodekey
Diffstat (limited to 'cmd/bootnode/main.go')
-rw-r--r-- | cmd/bootnode/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 != "": |