eth: fix protocol version/network id copied from config to Ethereum field

This commit is contained in:
zelig 2015-03-23 16:23:06 +00:00
parent dbb2af6016
commit 03cc5df9b7

@ -182,10 +182,11 @@ func New(config *Config) (*Ethereum, error) {
stateDb: stateDb,
extraDb: extraDb,
eventMux: &event.TypeMux{},
// logger: servlogsystem,
accountManager: config.AccountManager,
DataDir: config.DataDir,
version: config.Name, // TODO should separate from Name
ProtocolVersion: config.ProtocolVersion,
NetworkId: config.NetworkId,
}
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux())