aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum/flags.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-01 06:01:41 +0800
committerobscuren <geffobscura@gmail.com>2015-03-01 06:01:41 +0800
commitfdf939a6f9b5360d76415c7118969d92af2774f9 (patch)
tree4ab13f3d946f857340590500ebd44ec8c1d439e3 /cmd/ethereum/flags.go
parentcdb77f0ecd239fe7a5494891c6a42645904a432b (diff)
downloadgo-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar.gz
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar.bz2
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar.lz
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar.xz
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.tar.zst
go-tangerine-fdf939a6f9b5360d76415c7118969d92af2774f9.zip
Fixed miner threads for ethereum CLI
Diffstat (limited to 'cmd/ethereum/flags.go')
-rw-r--r--cmd/ethereum/flags.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go
index 1a0c13c82..356571a23 100644
--- a/cmd/ethereum/flags.go
+++ b/cmd/ethereum/flags.go
@@ -27,6 +27,7 @@ import (
"log"
"os"
"path"
+ "runtime"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethutil"
@@ -71,6 +72,7 @@ var (
SHH bool
Dial bool
PrintVersion bool
+ MinerThreads int
)
// flags specific to cli client
@@ -121,6 +123,7 @@ func Init() {
flag.BoolVar(&StartMining, "mine", false, "start dagger mining")
flag.BoolVar(&StartJsConsole, "js", false, "launches javascript console")
flag.BoolVar(&PrintVersion, "version", false, "prints version number")
+ flag.IntVar(&MinerThreads, "minerthreads", runtime.NumCPU(), "number of miner threads")
// Network stuff
var (