code: func (ds *MockStaticDiscoveryService) GetPeers() ([]fab.Peer, error) {
  
  	if ds.Error != nil {
  		return nil, ds.Error
  	}
  
  	if ds.Peers == nil {
  		mockPeer := MockPeer{MockName: "Peer1", MockURL: "http://peer1.com", MockRoles: []string{}, MockCert: nil, MockMSP: "Org1MSP"}
  		peers := make([]fab.Peer, 0)
  		peers = append(peers, &mockPeer)
  		ds.Peers = peers
  	}
  
  	return ds.Peers, nil
  
  }
docs: // GetPeers is used to discover eligible peers for chaincode