Merge pull request #551 from ethersphere/frontier/eth-version-exports

eth: fix protocol version/network id copied from config to Ethereum field
This commit is contained in:
Taylor Gerring 2015-03-23 18:00:54 +01:00
commit 60020add74
1 changed files with 10 additions and 9 deletions

View File

@ -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())