Module Resource_pool.Diff

val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
module Diff_error : sig ... end
module Rejected : sig ... end
type Structured_log_events.t +=
| Transactions_received of {
txns : t;
sender : Network_peer.Envelope.Sender.t;
}
val transactions_received_structured_events_id : Structured_log_events.id
val transactions_received_structured_events_repr : Structured_log_events.repr
val to_yojson : t -> Yojson.Safe.t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
type verified
val verified_to_yojson : verified -> Yojson.Safe.t
val sexp_of_verified : verified -> Ppx_sexp_conv_lib.Sexp.t
val verified_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> verified
type rejected = Rejected.t
val rejected_to_yojson : rejected -> Yojson.Safe.t
val sexp_of_rejected : rejected -> Ppx_sexp_conv_lib.Sexp.t
val rejected_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> rejected
val empty : t
val reject_overloaded_diff : verified -> rejected
val size : t -> int
val score : t -> int
val max_per_15_seconds : int
val summary : t -> string
val verify : t -> t Network_peer.Envelope.Incoming.t -> verified Network_peer.Envelope.Incoming.t Async_kernel.Deferred.Or_error.t
val unsafe_apply : t -> verified Network_peer.Envelope.Incoming.t -> ( [ `Accept | `Reject ] * t * rejected, [ `Locally_generated of t * rejected | `Other of Core_kernel.Error.t ] ) Async_kernel.Deferred.Result.t
val is_empty : t -> bool