aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_ethstats.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-12-03 22:50:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-12-04 18:12:40 +0800
commitd4415f5e40fbd155adb3e85e4eae5c7db7832694 (patch)
tree8488e9f090452b234a53e3dd346f2874f2bf0b57 /cmd/puppeth/wizard_ethstats.go
parent8698fbabf6c7811e8eec6e84512510e9c9a4eb45 (diff)
downloaddexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.gz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.bz2
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.lz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.xz
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.zst
dexon-d4415f5e40fbd155adb3e85e4eae5c7db7832694.zip
cmd/puppeth: chain import/export via wizard, minor polishes
Diffstat (limited to 'cmd/puppeth/wizard_ethstats.go')
-rw-r--r--cmd/puppeth/wizard_ethstats.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go
index fb2529c26..58ff3efbe 100644
--- a/cmd/puppeth/wizard_ethstats.go
+++ b/cmd/puppeth/wizard_ethstats.go
@@ -67,11 +67,11 @@ func (w *wizard) deployEthstats() {
if existed {
fmt.Println()
fmt.Printf("Keep existing IP %v blacklist (y/n)? (default = yes)\n", infos.banned)
- if w.readDefaultString("y") != "y" {
+ if !w.readDefaultYesNo(true) {
// The user might want to clear the entire list, although generally probably not
fmt.Println()
fmt.Printf("Clear out blacklist and start over (y/n)? (default = no)\n")
- if w.readDefaultString("n") != "n" {
+ if w.readDefaultYesNo(false) {
infos.banned = nil
}
// Offer the user to explicitly add/remove certain IP addresses
@@ -106,7 +106,7 @@ func (w *wizard) deployEthstats() {
if existed {
fmt.Println()
fmt.Printf("Should the ethstats be built from scratch (y/n)? (default = no)\n")
- nocache = w.readDefaultString("n") != "n"
+ nocache = w.readDefaultYesNo(false)
}
trusted := make([]string, 0, len(w.servers))
for _, client := range w.servers {