SampleService is a trivial network service that can be attached to a node for life cycle management. The following methods are needed to implement a node.Service: - Protocols() []p2p.Protocol - devp2p protocols the service can communicate on - APIs() []rpc.API - api methods the service wa
| 21 | // - Start() error - method invoked when the node is ready to start the service |
| 22 | // - Stop() error - method invoked when the node terminates the service |
| 23 | type SampleService struct{} |
| 24 | |
| 25 | func (s *SampleService) Protocols() []p2p.Protocol { return nil } |
| 26 | func (s *SampleService) APIs() []rpc.API { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected