eth, cmd/geth: start mining from console respects CLI flag
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user