aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-19 21:00:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:33 +0800
commitda3b9f831e6bb8f8a3c589e5cd8426fd9da72eea (patch)
treefb9cca2507788d43e79113a42d9abc3e221e6378 /cmd/puppeth/wizard_node.go
parent7b258c96816df56e642df7e314e8052213af70fa (diff)
downloaddexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.gz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.bz2
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.lz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.xz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.zst
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.zip
cmd/puppeth: support deploying services with forced rebuilds
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 69d1715a4..023da8e1e 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -44,7 +44,7 @@ func (w *wizard) deployNode(boot bool) {
}
client := w.servers[server]
- // Retrieve any active ethstats configurations from the server
+ // Retrieve any active node configurations from the server
infos, err := checkNode(client, w.network, boot)
if err != nil {
if boot {
@@ -145,7 +145,11 @@ func (w *wizard) deployNode(boot bool) {
infos.gasPrice = w.readDefaultFloat(infos.gasPrice)
}
// Try to deploy the full node on the host
- if out, err := deployNode(client, w.network, w.conf.bootFull, w.conf.bootLight, infos); err != nil {
+ fmt.Println()
+ fmt.Printf("Should the node be built from scratch (y/n)? (default = no)\n")
+ nocache := w.readDefaultString("n") != "n"
+
+ if out, err := deployNode(client, w.network, w.conf.bootFull, w.conf.bootLight, infos, nocache); err != nil {
log.Error("Failed to deploy Ethereum node container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)