aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_netstats.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-26 17:39:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:38 +0800
commit80be5e546398203c1958a0f512e651a2c36b1fe0 (patch)
tree8734682b62b3da4a9596dd3cf632d7501d309a8f /cmd/puppeth/wizard_netstats.go
parent7abf968d6fbc5955fedac6f3aba27afdca02176f (diff)
downloadgo-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.gz
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.bz2
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.lz
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.xz
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.zst
go-tangerine-80be5e546398203c1958a0f512e651a2c36b1fe0.zip
cmd/puppeth: store genesis locally to persist restarts
Diffstat (limited to 'cmd/puppeth/wizard_netstats.go')
-rw-r--r--cmd/puppeth/wizard_netstats.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go
index 469b7f2bf..e19180bb1 100644
--- a/cmd/puppeth/wizard_netstats.go
+++ b/cmd/puppeth/wizard_netstats.go
@@ -32,7 +32,7 @@ import (
// configuration set to give users hints on how to do various tasks.
func (w *wizard) networkStats() {
if len(w.servers) == 0 {
- log.Error("No remote machines to gather stats from")
+ log.Info("No remote machines to gather stats from")
return
}
// Clear out some previous configs to refill from current scan
@@ -173,12 +173,12 @@ func (w *wizard) gatherStats(server string, pubkey []byte, client *sshClient) *s
w.lock.Lock()
defer w.lock.Unlock()
- if genesis != "" && w.conf.genesis == nil {
+ if genesis != "" && w.conf.Genesis == nil {
g := new(core.Genesis)
if err := json.Unmarshal([]byte(genesis), g); err != nil {
log.Error("Failed to parse remote genesis", "err", err)
} else {
- w.conf.genesis = g
+ w.conf.Genesis = g
}
}
if ethstats != "" {