diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-11-23 20:22:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-23 20:22:59 +0800 |
commit | a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d (patch) | |
tree | 9c776ad507336517680ce447e2649c6e38fca29a /cmd/puppeth/wizard_node.go | |
parent | b169a309f9f22eff18a66b4e3a97dd0184a946e8 (diff) | |
download | dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.gz dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.zst dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.zip |
cmd/puppeth: fix typos and review suggestions
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r-- | cmd/puppeth/wizard_node.go | 5 |
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() |