package tezos-p2p-services

  1. Overview
  2. Docs
type ip_list = {
  1. ips : Ipaddr.V6.t list;
    (*

    If not_reliable_since is None contains the list of currently greylisted IPs.

    *)
  2. not_reliable_since : Ptime.t option;
    (*

    Contains the date of the first time that the list of IPs has been overflowed and became not reliable.

    *)
}

Structure that provides a friendly and bounded list of currently greylisted IPs.

val clear : Tezos_rpc.Context.simple -> unit -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val get_greylisted_peers : Tezos_rpc.Context.simple -> Tezos_base.TzPervasives.P2p_peer.Id.t list Tezos_base.TzPervasives.tzresult Lwt.t
val get_greylisted_ips : Tezos_rpc.Context.simple -> ip_list Tezos_base.TzPervasives.tzresult Lwt.t
module S : sig ... end
OCaml

Innovation. Community. Security.