aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/main.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-02-19 17:38:36 +0800
committerMaran <maran.hidskes@gmail.com>2015-02-19 17:38:36 +0800
commit5aff8bfb5918e53ba2590b25e6c17e1875870f6a (patch)
tree3961c734a18e1f517d49c0cebc76bbdcae964605 /cmd/mist/main.go
parentee9df32dba5091069cbdad8d00dc15738d676d5b (diff)
downloaddexon-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/mist/main.go')
-rw-r--r--cmd/mist/main.go27
1 files changed, 14 insertions, 13 deletions
diff --git a/cmd/mist/main.go b/cmd/mist/main.go
index 14f561e99..d41aa34bf 100644
--- a/cmd/mist/main.go
+++ b/cmd/mist/main.go
@@ -52,19 +52,20 @@ func run() error {
config := utils.InitConfig(VmType, ConfigFile, Datadir, "ETH")
ethereum, err := eth.New(&eth.Config{
- Name: p2p.MakeName(ClientIdentifier, Version),
- KeyStore: KeyStore,
- DataDir: Datadir,
- LogFile: LogFile,
- LogLevel: LogLevel,
- MaxPeers: MaxPeer,
- Port: OutboundPort,
- NAT: NAT,
- Shh: true,
- BootNodes: BootNodes,
- NodeKey: NodeKey,
- KeyRing: KeyRing,
- Dial: true,
+ Name: p2p.MakeName(ClientIdentifier, Version),
+ KeyStore: KeyStore,
+ DataDir: Datadir,
+ LogFile: LogFile,
+ LogLevel: LogLevel,
+ MaxPeers: MaxPeer,
+ Port: OutboundPort,
+ NAT: NAT,
+ Shh: true,
+ BootNodes: BootNodes,
+ NodeKey: NodeKey,
+ KeyRing: KeyRing,
+ Dial: true,
+ MinerThreads: MinerThreads,
})
if err != nil {
mainlogger.Fatalln(err)