aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_wallet.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_wallet.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_wallet.go')
-rw-r--r--cmd/puppeth/wizard_wallet.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_wallet.go b/cmd/puppeth/wizard_wallet.go
index dfbf11804..1165c5cdc 100644
--- a/cmd/puppeth/wizard_wallet.go
+++ b/cmd/puppeth/wizard_wallet.go
@@ -27,7 +27,7 @@ import (
// deployWallet creates a new web wallet based on some user input.
func (w *wizard) deployWallet() {
// 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
}
@@ -47,8 +47,8 @@ func (w *wizard) deployWallet() {
if err != nil {
infos = &walletInfos{nodePort: 30303, rpcPort: 8545, webPort: 80, webHost: client.server}
}
- infos.genesis, _ = json.MarshalIndent(w.conf.genesis, "", " ")
- infos.network = w.conf.genesis.Config.ChainId.Int64()
+ infos.genesis, _ = json.MarshalIndent(w.conf.Genesis, "", " ")
+ infos.network = w.conf.Genesis.Config.ChainId.Int64()
// Figure out which port to listen on
fmt.Println()