diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-23 17:02:35 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:30 +0800 |
commit | fc8421afacee4c6e332bbb91606d58b9a11413cc (patch) | |
tree | 08c4dabe0d9ad16af293ae7a137e5af88eff840e /dex/handler.go | |
parent | e6f5201b178f40b516ffe7b98757df25f8aee028 (diff) | |
download | go-tangerine-fc8421afacee4c6e332bbb91606d58b9a11413cc.tar.gz go-tangerine-fc8421afacee4c6e332bbb91606d58b9a11413cc.tar.zst go-tangerine-fc8421afacee4c6e332bbb91606d58b9a11413cc.zip |
dex: gracefully shutdown when consensus core stops
Diffstat (limited to 'dex/handler.go')
-rw-r--r-- | dex/handler.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dex/handler.go b/dex/handler.go index 6ef3c3359..9ad35ed30 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -312,7 +312,7 @@ func (pm *ProtocolManager) Start(srvr p2pServer, maxPeers int) { } func (pm *ProtocolManager) Stop() { - log.Info("Stopping DEXON protocol") + log.Info("Stopping protocol manager") pm.txsSub.Unsubscribe() // quits txBroadcastLoop pm.chainHeadSub.Unsubscribe() @@ -337,7 +337,7 @@ func (pm *ProtocolManager) Stop() { // Wait for all peer handler goroutines and the loops to come down. pm.wg.Wait() - log.Info("DEXON protocol stopped") + log.Info("Protocol manager stopped") } func (pm *ProtocolManager) ReceiveChan() <-chan coreTypes.Msg { @@ -1372,7 +1372,7 @@ func (pm *ProtocolManager) peerSetLoop() { // NodeInfo represents a short summary of the Ethereum sub-protocol metadata // known about the host peer. type NodeInfo struct { - Network uint64 `json:"network"` // DEXON network ID (373=Mainnet, 374=Taiwan) + Network uint64 `json:"network"` // Network ID (373=Mainnet, 374=Testnet) Number uint64 `json:"number"` // Total difficulty of the host's blockchain Genesis common.Hash `json:"genesis"` // SHA3 hash of the host's genesis block Config *params.ChainConfig `json:"config"` // Chain configuration for the fork rules |