def generate_neighbor_nid(local_nid: bytes, neighbour_nid: bytes) -> bytes:
    """
    Generates a fake node id adding the first 15 bytes of the local node and
    the first 5 bytes of the remote node.

    This makes the remote node believe we are close to it in the DHT.
    """
    return neighbour_nid[:15] + local_nid[:5]