aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-24 00:23:06 +0800
committerzelig <viktor.tron@gmail.com>2015-03-24 00:23:06 +0800
commit03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930 (patch)
tree95de03e9001a2268428116e2dc7e1d2912c09427 /eth
parentdbb2af6016c952b0f49d552a10fc59af0a9f7ce7 (diff)
downloaddexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar.gz
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar.bz2
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar.lz
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar.xz
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.tar.zst
dexon-03cc5df9b7ea7d9bf5569b5b4e320c7c7d0e0930.zip
eth: fix protocol version/network id copied from config to Ethereum field
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 06c3cbd17..4e60e16f2 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -177,15 +177,16 @@ func New(config *Config) (*Ethereum, error) {
servlogger.Infof("Protocol Version: %v, Network Id: %v", config.ProtocolVersion, config.NetworkId)
eth := &Ethereum{
- shutdownChan: make(chan bool),
- blockDb: blockDb,
- stateDb: stateDb,
- extraDb: extraDb,
- eventMux: &event.TypeMux{},
- // logger: servlogsystem,
- accountManager: config.AccountManager,
- DataDir: config.DataDir,
- version: config.Name, // TODO should separate from Name
+ shutdownChan: make(chan bool),
+ blockDb: blockDb,
+ stateDb: stateDb,
+ extraDb: extraDb,
+ eventMux: &event.TypeMux{},
+ 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())