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_ethstats.go | |
parent | b169a309f9f22eff18a66b4e3a97dd0184a946e8 (diff) | |
download | go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.gz go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.bz2 go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.lz go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.xz go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.zst go-tangerine-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.zip |
cmd/puppeth: fix typos and review suggestions
Diffstat (limited to 'cmd/puppeth/wizard_ethstats.go')
-rw-r--r-- | cmd/puppeth/wizard_ethstats.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go index 56dbeb9b4..fb2529c26 100644 --- a/cmd/puppeth/wizard_ethstats.go +++ b/cmd/puppeth/wizard_ethstats.go @@ -34,8 +34,6 @@ func (w *wizard) deployEthstats() { client := w.servers[server] // Retrieve any active ethstats configurations from the server - existed := true - infos, err := checkEthstats(client, w.network) if err != nil { infos = ðstatsInfos{ @@ -43,8 +41,9 @@ func (w *wizard) deployEthstats() { host: client.server, secret: "", } - existed = false } + existed := err == nil + // Figure out which port to listen on fmt.Println() fmt.Printf("Which port should ethstats listen on? (default = %d)\n", infos.port) |