• Create and return a PeerFilter

    Parameters

    • size: number

      The maximum number of peers expected to be added to the filter

    • errorRate: number = 0.001

      The acceptable error rate

    Returns PeerFilter