diff options
author | Maran <maran.hidskes@gmail.com> | 2015-02-19 17:38:36 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2015-02-19 17:38:36 +0800 |
commit | 5aff8bfb5918e53ba2590b25e6c17e1875870f6a (patch) | |
tree | 3961c734a18e1f517d49c0cebc76bbdcae964605 /cmd/mist/flags.go | |
parent | ee9df32dba5091069cbdad8d00dc15738d676d5b (diff) | |
download | go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.gz go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.bz2 go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.lz go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.xz go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.zst go-tangerine-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.zip |
Implement command line argument to set the amount of agents created by the miner
Defaults to the amount of cores available on the CPU
Diffstat (limited to 'cmd/mist/flags.go')
-rw-r--r-- | cmd/mist/flags.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/mist/flags.go b/cmd/mist/flags.go index eb280f71b..d9487de9e 100644 --- a/cmd/mist/flags.go +++ b/cmd/mist/flags.go @@ -63,6 +63,7 @@ var ( DebugFile string LogLevel int VmType int + MinerThreads int ) // flags specific to gui client @@ -137,6 +138,8 @@ func Init() { flag.StringVar(&BootNodes, "bootnodes", "", "space-separated node URLs for discovery bootstrap") flag.IntVar(&MaxPeer, "maxpeer", 30, "maximum desired peers") + flag.IntVar(&MinerThreads, "minerthreads", runtime.NumCPU(), "number of miner threads") + flag.Parse() var err error |