aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-25 00:31:23 +0800
committerGitHub <noreply@github.com>2017-04-25 00:31:23 +0800
commit7cc6abeef6ec0b6c5fd5a94920fa79157cdfcd37 (patch)
tree5754cc574e3a2bdcf81b294f6185d03c24a4de72
parent54253aae4cbb224d32386455673e19e240b95d3d (diff)
parentecec454e92537c9c5e6969e589e7ffcf40e4c8e8 (diff)
downloadgo-tangerine-7cc6abeef6ec0b6c5fd5a94920fa79157cdfcd37.tar.gz
go-tangerine-7cc6abeef6ec0b6c5fd5a94920fa79157cdfcd37.tar.zst
go-tangerine-7cc6abeef6ec0b6c5fd5a94920fa79157cdfcd37.zip
Merge pull request #14372 from bas-vk/bootnodegenkey
cmd/bootnode: stop after generating/writing nodekey
-rw-r--r--cmd/bootnode/main.go1
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 != "":