diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-19 22:50:34 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:33 +0800 |
commit | 9e095251b71255ff346ee9300df8754eb6b64903 (patch) | |
tree | ad5a277c3c69b0ef482f5fbe67a73c75b932b23f /cmd/puppeth/wizard_node.go | |
parent | da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea (diff) | |
download | dexon-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.go | 10 |
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) |