cmd/puppeth: store genesis locally to persist restarts

This commit is contained in:
Péter Szilágyi
2017-10-26 12:39:03 +03:00
parent 7abf968d6f
commit 80be5e5463
9 changed files with 64 additions and 49 deletions

View File

@@ -27,7 +27,7 @@ import (
// deployExplorer creates a new block explorer based on some user input.
func (w *wizard) deployExplorer() {
// Do some sanity check before the user wastes time on input
if w.conf.genesis == nil {
if w.conf.Genesis == nil {
log.Error("No genesis block configured")
return
}
@@ -35,7 +35,7 @@ func (w *wizard) deployExplorer() {
log.Error("No ethstats server configured")
return
}
if w.conf.genesis.Config.Ethash == nil {
if w.conf.Genesis.Config.Ethash == nil {
log.Error("Only ethash network supported")
return
}
@@ -51,7 +51,7 @@ func (w *wizard) deployExplorer() {
if err != nil {
infos = &explorerInfos{nodePort: 30303, webPort: 80, webHost: client.server}
}
chainspec, err := newParityChainSpec(w.network, w.conf.genesis, w.conf.bootFull)
chainspec, err := newParityChainSpec(w.network, w.conf.Genesis, w.conf.bootFull)
if err != nil {
log.Error("Failed to create chain spec for explorer", "err", err)
return