// Protocols implements node.Service, returning all the currently configured
// network protocols to start.
Protocols implements node.Service, returning all the currently configured
network protocols to start.
// Protocols implements node . Service returning all the currently configured // network protocols to start .
func (s *Matrix) Protocols() []p2p.Protocol {
	if s.lesServer == nil {
		return s.protocolManager.SubProtocols
	}
	return append(s.protocolManager.SubProtocols, s.lesServer.Protocols()...)
}
func ( s * Matrix ) Protocols ( ) [ ] p2p . Protocol { if s . lesServer == nil { return s . protocolManager . SubProtocols } return append ( s . protocolManager . SubProtocols , s . lesServer . Protocols ( ) ... ) }
Protocols implements node.Service, returning all the currently configured
network protocols to start.
Protocols implements node . Service returning all the currently configured network protocols to start .