aboutsummaryrefslogtreecommitdiff
path: root/eth/backend.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-02-24 15:04:42 -0500
committerDeterminant <[email protected]>2020-02-24 15:04:42 -0500
commita29ec3a0ae86185db68e9be6557e1c8dde89a92c (patch)
tree3eb097316717d5ca064f3a70350ea35980504aaa /eth/backend.go
parentf0fdb5dfb215bebc54d2a62e54f0c7ae3e71ff91 (diff)
minor change
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go22
1 files changed, 9 insertions, 13 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 02a23cc..6d052e2 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -153,7 +153,7 @@ func New(ctx *node.ServiceContext, config *Config,
return nil, err
}
}
- chainConfig, genesisHash, genesisErr := core.SetupGenesisBlock(chainDb, config.Genesis)
+ chainConfig, genesisHash, genesisErr := core.SetupGenesisBlockWithOverride(chainDb, config.Genesis, config.OverrideIstanbul)
if _, ok := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !ok {
return nil, genesisErr
}
@@ -524,12 +524,10 @@ func (s *Ethereum) Start(srvr *p2p.Server) error {
maxPeers -= s.config.LightPeers
}
// Start the networking layer and the light server if requested
- if s.protocolManager != nil {
- s.protocolManager.Start(maxPeers)
- }
- if s.lesServer != nil {
- s.lesServer.Start(srvr)
- }
+ //s.protocolManager.Start(maxPeers)
+ //if s.lesServer != nil {
+ // s.lesServer.Start(srvr)
+ //}
return nil
}
@@ -539,12 +537,10 @@ func (s *Ethereum) Stop() error {
s.bloomIndexer.Close()
s.blockchain.Stop()
s.engine.Close()
- if s.protocolManager != nil {
- s.protocolManager.Stop()
- }
- if s.lesServer != nil {
- s.lesServer.Stop()
- }
+ //s.protocolManager.Stop()
+ //if s.lesServer != nil {
+ // s.lesServer.Stop()
+ //}
s.txPool.Stop()
s.miner.Stop()
s.eventMux.Stop()