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/utils/cmd.go | |
parent | ee9df32dba5091069cbdad8d00dc15738d676d5b (diff) | |
download | dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.gz dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.bz2 dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.lz dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.xz dexon-5aff8bfb5918e53ba2590b25e6c17e1875870f6a.tar.zst dexon-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/utils/cmd.go')
-rw-r--r-- | cmd/utils/cmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index ecb847fc3..d252f3ab2 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -225,7 +225,7 @@ func StartMining(ethereum *eth.Ethereum) bool { go func() { clilogger.Infoln("Start mining") if gminer == nil { - gminer = miner.New(addr, ethereum) + gminer = miner.New(addr, ethereum, 4) } gminer.Start() }() |