code: func (g *gossipServiceImpl) UpdateChaincodes(chaincodes []*proto.Chaincode, chainID common.ChainID) {
  	gc := g.chanState.getGossipChannelByChainID(chainID)
  	if gc == nil {
  		g.logger.Warning("No such channel", chainID)
  		return
  	}
  	gc.UpdateChaincodes(chaincodes)
  }
docs: // UpdateChaincodes updates the chaincodes the peer publishes
  // to other peers in the channel