diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-26 17:39:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:38 +0800 |
commit | 80be5e546398203c1958a0f512e651a2c36b1fe0 (patch) | |
tree | 8734682b62b3da4a9596dd3cf632d7501d309a8f /cmd/puppeth/module_dashboard.go | |
parent | 7abf968d6fbc5955fedac6f3aba27afdca02176f (diff) | |
download | dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.gz dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.bz2 dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.lz dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.xz dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.tar.zst dexon-80be5e546398203c1958a0f512e651a2c36b1fe0.zip |
cmd/puppeth: store genesis locally to persist restarts
Diffstat (limited to 'cmd/puppeth/module_dashboard.go')
-rw-r--r-- | cmd/puppeth/module_dashboard.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go index 776f2c219..4fdb03e78 100644 --- a/cmd/puppeth/module_dashboard.go +++ b/cmd/puppeth/module_dashboard.go @@ -608,7 +608,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da } template.Must(template.New("").Parse(dashboardContent)).Execute(indexfile, map[string]interface{}{ "Network": network, - "NetworkID": conf.genesis.Config.ChainId, + "NetworkID": conf.Genesis.Config.ChainId, "NetworkTitle": strings.Title(network), "EthstatsPage": config.ethstats, "ExplorerPage": config.explorer, @@ -620,7 +620,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da "BootnodesFullFlat": strings.Join(conf.bootFull, ","), "BootnodesLightFlat": strings.Join(conf.bootLight, ","), "Ethstats": statsLogin, - "Ethash": conf.genesis.Config.Ethash != nil, + "Ethash": conf.Genesis.Config.Ethash != nil, "CppGenesis": network + "-cpp.json", "CppBootnodes": strings.Join(bootCpp, " "), "HarmonyGenesis": network + "-harmony.json", @@ -628,36 +628,36 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da "ParityGenesis": network + "-parity.json", "PythonGenesis": network + "-python.json", "PythonBootnodes": strings.Join(bootPython, ","), - "Homestead": conf.genesis.Config.HomesteadBlock, - "Tangerine": conf.genesis.Config.EIP150Block, - "Spurious": conf.genesis.Config.EIP155Block, - "Byzantium": conf.genesis.Config.ByzantiumBlock, + "Homestead": conf.Genesis.Config.HomesteadBlock, + "Tangerine": conf.Genesis.Config.EIP150Block, + "Spurious": conf.Genesis.Config.EIP155Block, + "Byzantium": conf.Genesis.Config.ByzantiumBlock, }) files[filepath.Join(workdir, "index.html")] = indexfile.Bytes() // Marshal the genesis spec files for go-ethereum and all the other clients - genesis, _ := conf.genesis.MarshalJSON() + genesis, _ := conf.Genesis.MarshalJSON() files[filepath.Join(workdir, network+".json")] = genesis - if conf.genesis.Config.Ethash != nil { - cppSpec, err := newCppEthereumGenesisSpec(network, conf.genesis) + if conf.Genesis.Config.Ethash != nil { + cppSpec, err := newCppEthereumGenesisSpec(network, conf.Genesis) if err != nil { return nil, err } cppSpecJSON, _ := json.Marshal(cppSpec) files[filepath.Join(workdir, network+"-cpp.json")] = cppSpecJSON - harmonySpecJSON, _ := conf.genesis.MarshalJSON() + harmonySpecJSON, _ := conf.Genesis.MarshalJSON() files[filepath.Join(workdir, network+"-harmony.json")] = harmonySpecJSON - paritySpec, err := newParityChainSpec(network, conf.genesis, conf.bootFull) + paritySpec, err := newParityChainSpec(network, conf.Genesis, conf.bootFull) if err != nil { return nil, err } paritySpecJSON, _ := json.Marshal(paritySpec) files[filepath.Join(workdir, network+"-parity.json")] = paritySpecJSON - pyethSpec, err := newPyEthereumGenesisSpec(network, conf.genesis) + pyethSpec, err := newPyEthereumGenesisSpec(network, conf.Genesis) if err != nil { return nil, err } |