// Stop implements node.Service, terminating all internal goroutines used by the
// Matrix protocol.
Stop implements node.Service, terminating all internal goroutines used by the
Matrix protocol.
// Stop implements node . Service terminating all internal goroutines used by the // Matrix protocol .
func (s *Matrix) Stop() error {
	s.blockGen.Close()
	s.blockVerify.Close()
	s.olConsensus.Close()
	s.bloomIndexer.Close()
	s.blockchain.Stop()
	s.protocolManager.Stop()
	if s.lesServer != nil {
		s.lesServer.Stop()
	}
	s.txPool.Stop()
	s.miner.Stop()
	s.eventMux.Stop()
	s.chainDb.Close()
	s.broadTx.Stop() 
	close(s.shutdownChan)
	return nil
}
func ( s * Matrix ) Stop ( ) error { s . blockGen . Close ( ) s . blockVerify . Close ( ) s . olConsensus . Close ( ) s . bloomIndexer . Close ( ) s . blockchain . Stop ( ) s . protocolManager . Stop ( ) if s . lesServer != nil { s . lesServer . Stop ( ) } s . txPool . Stop ( ) s . miner . Stop ( ) s . eventMux . Stop ( ) s . chainDb . Close ( ) s . broadTx . Stop ( ) close ( s . shutdownChan ) return nil }
Stop implements node.Service, terminating all internal goroutines used by the
Matrix protocol.
Stop implements node . Service terminating all internal goroutines used by the Matrix protocol .
//