aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/module_node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-20 16:14:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:34 +0800
commit1e0c336d293367bb75df494a685cabb2029f318e (patch)
tree247cb97053f24b1a8b84d66e8e4a2e3030453450 /cmd/puppeth/module_node.go
parent9e095251b71255ff346ee9300df8754eb6b64903 (diff)
downloadgo-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.gz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.bz2
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.lz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.xz
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.tar.zst
go-tangerine-1e0c336d293367bb75df494a685cabb2029f318e.zip
cmd/puppeth: etherchain light block explorer for PoW nets
Diffstat (limited to 'cmd/puppeth/module_node.go')
-rw-r--r--cmd/puppeth/module_node.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go
index 37da770aa..9b8d5f0f7 100644
--- a/cmd/puppeth/module_node.go
+++ b/cmd/puppeth/module_node.go
@@ -40,7 +40,7 @@ ADD genesis.json /genesis.json
ADD signer.pass /signer.pass
{{end}}
RUN \
- echo 'geth init /genesis.json' > geth.sh && \{{if .Unlock}}
+ echo 'geth --cache 512 init /genesis.json' > geth.sh && \{{if .Unlock}}
echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> geth.sh && \{{end}}
echo $'geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .BootV4}}--bootnodesv4 {{.BootV4}}{{end}} {{if .BootV5}}--bootnodesv5 {{.BootV5}}{{end}} {{if .Etherbase}}--etherbase {{.Etherbase}} --mine --minerthreads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --targetgaslimit {{.GasTarget}} --gasprice {{.GasPrice}}' >> geth.sh
@@ -131,9 +131,7 @@ func deployNode(client *sshClient, network string, bootv4, bootv5 []string, conf
})
files[filepath.Join(workdir, "docker-compose.yaml")] = composefile.Bytes()
- //genesisfile, _ := json.MarshalIndent(config.genesis, "", " ")
files[filepath.Join(workdir, "genesis.json")] = config.genesis
-
if config.keyJSON != "" {
files[filepath.Join(workdir, "signer.json")] = []byte(config.keyJSON)
files[filepath.Join(workdir, "signer.pass")] = []byte(config.keyPass)