def _calc_peer_validity(block_height: int, win_size: int) -> int:
    """
    Calculate lower bound for blocks with valid advertisements and requests.
    :param block_height: Current Block height
    :param win_size: Window Size
    :return: The lowest block that contains still valid ads/requests
    """
    return (block_height // win_size) * win_size