MCPcopy Create free account
hub / github.com/CPChain/chain / Stop

Method Stop

protocols/cpc/backend.go:523–538  ·  view source on GitHub ↗

Stop implements node.Service, terminating all internal goroutines used by the cpchain protocol.

()

Source from the content-addressed store, hash-verified

521// Stop implements node.Service, terminating all internal goroutines used by the
522// cpchain protocol.
523func (s *CpchainService) Stop() error {
524 s.bloomIndexer.Close()
525 s.blockchain.Stop()
526 s.protocolManager.Stop()
527 if s.lesServer != nil {
528 s.lesServer.Stop()
529 }
530 s.txPool.Stop()
531 s.miner.Stop()
532 s.eventMux.Stop()
533
534 s.chainDb.Close()
535 close(s.shutdownChan)
536
537 return nil
538}

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected