aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_faucet.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-12-04 18:15:50 +0800
committerGitHub <noreply@github.com>2018-12-04 18:15:50 +0800
commitf74077b4c24a6d1490dc12564d001df57d2a41fe (patch)
tree88414dd2db6d5025ad199376349dc6e5098f5fa8 /cmd/puppeth/wizard_faucet.go
parent7a5c1b28ddd4ce1e95f6ed01672b9d44dba047f2 (diff)
parentd4415f5e40fbd155adb3e85e4eae5c7db7832694 (diff)
downloaddexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar.gz
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar.bz2
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar.lz
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar.xz
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.tar.zst
dexon-f74077b4c24a6d1490dc12564d001df57d2a41fe.zip
Merge pull request #18172 from holiman/puppeth_converter
cmd/puppeth: implement chainspec converters
Diffstat (limited to 'cmd/puppeth/wizard_faucet.go')
-rw-r--r--cmd/puppeth/wizard_faucet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go
index 6f0840894..9068c1d30 100644
--- a/cmd/puppeth/wizard_faucet.go
+++ b/cmd/puppeth/wizard_faucet.go
@@ -81,7 +81,7 @@ func (w *wizard) deployFaucet() {
if infos.captchaToken != "" {
fmt.Println()
fmt.Println("Reuse previous reCaptcha API authorization (y/n)? (default = yes)")
- if w.readDefaultString("y") != "y" {
+ if !w.readDefaultYesNo(true) {
infos.captchaToken, infos.captchaSecret = "", ""
}
}
@@ -89,7 +89,7 @@ func (w *wizard) deployFaucet() {
// No previous authorization (or old one discarded)
fmt.Println()
fmt.Println("Enable reCaptcha protection against robots (y/n)? (default = no)")
- if w.readDefaultString("n") == "n" {
+ if !w.readDefaultYesNo(false) {
log.Warn("Users will be able to requests funds via automated scripts")
} else {
// Captcha protection explicitly requested, read the site and secret keys
@@ -132,7 +132,7 @@ func (w *wizard) deployFaucet() {
} else {
fmt.Println()
fmt.Printf("Reuse previous (%s) funding account (y/n)? (default = yes)\n", key.Address.Hex())
- if w.readDefaultString("y") != "y" {
+ if !w.readDefaultYesNo(true) {
infos.node.keyJSON, infos.node.keyPass = "", ""
}
}
@@ -166,7 +166,7 @@ func (w *wizard) deployFaucet() {
if existed {
fmt.Println()
fmt.Printf("Should the faucet be built from scratch (y/n)? (default = no)\n")
- nocache = w.readDefaultString("n") != "n"
+ nocache = w.readDefaultYesNo(false)
}
if out, err := deployFaucet(client, w.network, w.conf.bootnodes, infos, nocache); err != nil {
log.Error("Failed to deploy faucet container", "err", err)