aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard.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.go
parent7abf968d6fbc5955fedac6f3aba27afdca02176f (diff)
downloaddexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.gz
dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.zst
dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.zip
cmd/puppeth: store genesis locally to persist restarts
Diffstat (limited to 'cmd/puppeth/wizard.go')
-rw-r--r--cmd/puppeth/wizard.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go
index e554dbd13..2e2b4644c 100644
--- a/cmd/puppeth/wizard.go
+++ b/cmd/puppeth/wizard.go
@@ -39,12 +39,12 @@ import (
// config contains all the configurations needed by puppeth that should be saved
// between sessions.
type config struct {
- path string // File containing the configuration values
- genesis *core.Genesis // Genesis block to cache for node deploys
- bootFull []string // Bootnodes to always connect to by full nodes
- bootLight []string // Bootnodes to always connect to by light nodes
- ethstats string // Ethstats settings to cache for node deploys
+ path string // File containing the configuration values
+ bootFull []string // Bootnodes to always connect to by full nodes
+ bootLight []string // Bootnodes to always connect to by light nodes
+ ethstats string // Ethstats settings to cache for node deploys
+ Genesis *core.Genesis `json:"genesis,omitempty"` // Genesis block to cache for node deploys
Servers map[string][]byte `json:"servers,omitempty"`
}