aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_explorer.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_explorer.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_explorer.go')
-rw-r--r--cmd/puppeth/wizard_explorer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_explorer.go b/cmd/puppeth/wizard_explorer.go
index 2df77fa5c..bbbe1e275 100644
--- a/cmd/puppeth/wizard_explorer.go
+++ b/cmd/puppeth/wizard_explorer.go
@@ -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