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