eth, cmd/geth: start mining from console respects CLI flag

This commit is contained in:
obscuren
2015-05-15 16:47:44 +02:00
parent d3e84cc8b4
commit 55d85d60fd
2 changed files with 3 additions and 1 deletions

View File

@ -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))