|
|
@ -177,15 +177,16 @@ func New(config *Config) (*Ethereum, error) { |
|
|
|
servlogger.Infof("Protocol Version: %v, Network Id: %v", config.ProtocolVersion, config.NetworkId) |
|
|
|
servlogger.Infof("Protocol Version: %v, Network Id: %v", config.ProtocolVersion, config.NetworkId) |
|
|
|
|
|
|
|
|
|
|
|
eth := &Ethereum{ |
|
|
|
eth := &Ethereum{ |
|
|
|
shutdownChan: make(chan bool), |
|
|
|
shutdownChan: make(chan bool), |
|
|
|
blockDb: blockDb, |
|
|
|
blockDb: blockDb, |
|
|
|
stateDb: stateDb, |
|
|
|
stateDb: stateDb, |
|
|
|
extraDb: extraDb, |
|
|
|
extraDb: extraDb, |
|
|
|
eventMux: &event.TypeMux{}, |
|
|
|
eventMux: &event.TypeMux{}, |
|
|
|
// logger: servlogsystem,
|
|
|
|
accountManager: config.AccountManager, |
|
|
|
accountManager: config.AccountManager, |
|
|
|
DataDir: config.DataDir, |
|
|
|
DataDir: config.DataDir, |
|
|
|
version: config.Name, // TODO should separate from Name
|
|
|
|
version: config.Name, // TODO should separate from Name
|
|
|
|
ProtocolVersion: config.ProtocolVersion, |
|
|
|
|
|
|
|
NetworkId: config.NetworkId, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux()) |
|
|
|
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux()) |
|
|
|