aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 8de1a1b0b..097e2e41a 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -45,8 +45,6 @@ func (w *wizard) deployNode(boot bool) {
client := w.servers[server]
// Retrieve any active node configurations from the server
- existed := true
-
infos, err := checkNode(client, w.network, boot)
if err != nil {
if boot {
@@ -54,8 +52,9 @@ func (w *wizard) deployNode(boot bool) {
} else {
infos = &nodeInfos{portFull: 30303, peersTotal: 50, peersLight: 0, gasTarget: 4.7, gasPrice: 18}
}
- existed = false
}
+ existed := err == nil
+
infos.genesis, _ = json.MarshalIndent(w.conf.Genesis, "", " ")
infos.network = w.conf.Genesis.Config.ChainId.Int64()