'Checks if the given torrent infohash exists in the torrent_store database.
:param infohash: The given infohash binary
:return: True or False indicating if we have the torrent'

def has_collected_torrent(self, infohash):

    if (not self.config.get_torrent_store_enabled()):
        raise OperationNotEnabledByConfigurationException('torrent_store    is    not    enabled')
    return (hexlify(infohash) in self.lm.torrent_store)
