diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-03 22:50:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-04 18:12:40 +0800 |
commit | d4415f5e40fbd155adb3e85e4eae5c7db7832694 (patch) | |
tree | 8488e9f090452b234a53e3dd346f2874f2bf0b57 /cmd/puppeth/wizard_node.go | |
parent | 8698fbabf6c7811e8eec6e84512510e9c9a4eb45 (diff) | |
download | go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.gz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.bz2 go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.lz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.xz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.zst go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.zip |
cmd/puppeth: chain import/export via wizard, minor polishes
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r-- | cmd/puppeth/wizard_node.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go index 49b10a023..e37297f6d 100644 --- a/cmd/puppeth/wizard_node.go +++ b/cmd/puppeth/wizard_node.go @@ -126,7 +126,7 @@ func (w *wizard) deployNode(boot bool) { } else { fmt.Println() fmt.Printf("Reuse previous (%s) signing account (y/n)? (default = yes)\n", key.Address.Hex()) - if w.readDefaultString("y") != "y" { + if !w.readDefaultYesNo(true) { infos.keyJSON, infos.keyPass = "", "" } } @@ -165,7 +165,7 @@ func (w *wizard) deployNode(boot bool) { if existed { fmt.Println() fmt.Printf("Should the node be built from scratch (y/n)? (default = no)\n") - nocache = w.readDefaultString("n") != "n" + nocache = w.readDefaultYesNo(false) } if out, err := deployNode(client, w.network, w.conf.bootnodes, infos, nocache); err != nil { log.Error("Failed to deploy Ethereum node container", "err", err) |