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

@ -190,6 +190,7 @@ type Ethereum struct {
// logger logger.LogSystem
Mining bool
MinerThreads int
NatSpec bool
DataDir string
etherbase common.Address
@ -262,6 +263,7 @@ func New(config *Config) (*Ethereum, error) {
ethVersionId: config.ProtocolVersion,
netVersionId: config.NetworkId,
NatSpec: config.NatSpec,
MinerThreads: config.MinerThreads,
}
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux())