aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_node.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-19 22:50:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:33 +0800
commit9e095251b71255ff346ee9300df8754eb6b64903 (patch)
treead5a277c3c69b0ef482f5fbe67a73c75b932b23f /cmd/puppeth/wizard_node.go
parentda3b9f831e6bb8f8a3c589e5cd8426fd9da72eea (diff)
downloaddexon-9e095251b71255ff346ee9300df8754eb6b64903.tar
dexon-9e095251b71255ff346ee9300df8754eb6b64903.tar.gz
dexon-9e095251b71255ff346ee9300df8754eb6b64903.tar.bz2
dexon-9e095251b71255ff346ee9300df8754eb6b64903.tar.lz
dexon-9e095251b71255ff346ee9300df8754eb6b64903.tar.xz
dexon-9e095251b71255ff346ee9300df8754eb6b64903.tar.zst
dexon-9e095251b71255ff346ee9300df8754eb6b64903.zip
cmd/puppeth: mount ethash dir from the host to cache DAGs
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r--cmd/puppeth/wizard_node.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 023da8e1e..f1b4619b5 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -65,6 +65,16 @@ func (w *wizard) deployNode(boot bool) {
fmt.Printf("Where should data be stored on the remote machine? (default = %s)\n", infos.datadir)
infos.datadir = w.readDefaultString(infos.datadir)
}
+ if w.conf.genesis.Config.Ethash != nil {
+ fmt.Println()
+ if infos.ethashdir == "" {
+ fmt.Printf("Where should the ethash mining DAGs be stored on the remote machine?\n")
+ infos.ethashdir = w.readString()
+ } else {
+ fmt.Printf("Where should the ethash mining DAGs be stored on the remote machine? (default = %s)\n", infos.ethashdir)
+ infos.ethashdir = w.readDefaultString(infos.ethashdir)
+ }
+ }
// Figure out which port to listen on
fmt.Println()
fmt.Printf("Which TCP/UDP port to listen on? (default = %d)\n", infos.portFull)