code: func (n *Network) DiscoveredPeer(p *Peer, chaincodes ...string) DiscoveredPeer {
  	peerCert, err := ioutil.ReadFile(n.PeerCert(p))
  	Expect(err).NotTo(HaveOccurred())
  
  	return DiscoveredPeer{
  		MSPID:      n.Organization(p.Organization).MSPID,
  		Endpoint:   fmt.Sprintf("127.0.0.1:%d", n.PeerPort(p, ListenPort)),
  		Identity:   string(peerCert),
  		Chaincodes: chaincodes,
  	}
  }
docs: // the function creates a new DiscoveredPeer from the peer and chaincodes passed as arguments