diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 19:31:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 19:53:50 +0800 |
commit | e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80 (patch) | |
tree | 9dd32e8fb794b4950313ae2b2cd5499bb60dc4cd /les/backend.go | |
parent | ba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff) | |
download | dexon-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.gz dexon-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.zst dexon-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.zip |
cmd, eth, les, mobile: make networkid uint64 everywhere
Diffstat (limited to 'les/backend.go')
-rw-r--r-- | les/backend.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/les/backend.go b/les/backend.go index 783e6e94e..646c81a7b 100644 --- a/les/backend.go +++ b/les/backend.go @@ -61,7 +61,7 @@ type LightEthereum struct { engine consensus.Engine accountManager *accounts.Manager - netVersionId int + networkId uint64 netRPCService *ethapi.PublicNetAPI } @@ -87,7 +87,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) { accountManager: ctx.AccountManager, engine: eth.CreateConsensusEngine(ctx, config, chainConfig, chainDb), shutdownChan: make(chan bool), - netVersionId: config.NetworkId, + networkId: config.NetworkId, } if eth.blockchain, err = light.NewLightChain(odr, eth.chainConfig, eth.engine, eth.eventMux); err != nil { return nil, err @@ -187,7 +187,7 @@ func (s *LightEthereum) Protocols() []p2p.Protocol { // Ethereum protocol implementation. func (s *LightEthereum) Start(srvr *p2p.Server) error { log.Warn("Light client mode is an experimental feature") - s.netRPCService = ethapi.NewPublicNetAPI(srvr, s.netVersionId) + s.netRPCService = ethapi.NewPublicNetAPI(srvr, s.networkId) s.protocolManager.Start(srvr) return nil } |