aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_netstats.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-20 16:14:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:34 +0800
commit1e0c336d293367bb75df494a685cabb2029f318e (patch)
tree247cb97053f24b1a8b84d66e8e4a2e3030453450 /cmd/puppeth/wizard_netstats.go
parent9e095251b71255ff346ee9300df8754eb6b64903 (diff)
downloadgo-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.gz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.bz2
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.lz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.xz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.zst
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.zip
cmd/puppeth: etherchain light block explorer for PoW nets
Diffstat (limited to 'cmd/puppeth/wizard_netstats.go')
-rw-r--r--cmd/puppeth/wizard_netstats.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go
index 906dfeda7..42df501b9 100644
--- a/cmd/puppeth/wizard_netstats.go
+++ b/cmd/puppeth/wizard_netstats.go
@@ -137,6 +137,14 @@ func (w *wizard) gatherStats(server string, pubkey []byte, client *sshClient) *s
stat.services["sealnode"] = infos.Report()
genesis = string(infos.genesis)
}
+ logger.Debug("Checking for explorer availability")
+ if infos, err := checkExplorer(client, w.network); err != nil {
+ if err != ErrServiceUnknown {
+ stat.services["explorer"] = map[string]string{"offline": err.Error()}
+ }
+ } else {
+ stat.services["explorer"] = infos.Report()
+ }
logger.Debug("Checking for faucet availability")
if infos, err := checkFaucet(client, w.network); err != nil {
if err != ErrServiceUnknown {