aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-15 22:47:44 +0800
committerobscuren <geffobscura@gmail.com>2015-05-16 02:26:15 +0800
commit55d85d60fdad2cbd7947d87b2a81bd8df6a18025 (patch)
treed855d927424171b258f14598d451c982d9c25736 /cmd
parentd3e84cc8b4d995b4cec505b1b183b44d55f61453 (diff)
downloaddexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar.gz
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar.bz2
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar.lz
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar.xz
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.tar.zst
dexon-55d85d60fdad2cbd7947d87b2a81bd8df6a18025.zip
eth, cmd/geth: start mining from console respects CLI flag
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go
index 91a336cbb..ebdf3512a 100644
--- a/cmd/geth/admin.go
+++ b/cmd/geth/admin.go
@@ -288,7 +288,7 @@ func (js *jsre) startMining(call otto.FunctionCall) otto.Value {
return otto.FalseValue()
}
} else {
- threads = 4
+ threads = int64(js.ethereum.MinerThreads)
}
err = js.ethereum.StartMining(int(threads))