Remote_sink.1-Diffval to_yojson : t -> Yojson.Safe.tval verified_to_yojson : verified -> Yojson.Safe.tval sexp_of_verified : verified -> Ppx_sexp_conv_lib.Sexp.tval verified_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> verifiedval rejected_to_yojson : rejected -> Yojson.Safe.tval sexp_of_rejected : rejected -> Ppx_sexp_conv_lib.Sexp.tval rejected_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> rejectedval empty : tval size : t -> intUsed to check whether or not information was filtered out of diffs * during diff application. Assumes that diff size will be the equal or * smaller after application is completed.
val score : t -> intHow big to consider this diff for purposes of metering.
val summary : t -> stringval verify :
pool ->
t Network_peer.Envelope.Incoming.t ->
verified Network_peer.Envelope.Incoming.t Async_kernel.Deferred.Or_error.tWarning: It must be safe to call this function asynchronously!
val unsafe_apply :
pool ->
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.tWarning: Using this directly could corrupt the resource pool if it conincides with applying locally generated diffs or diffs from the network or diffs from transition frontier extensions.
val is_empty : t -> boolval update_metrics :
t Network_peer.Envelope.Incoming.t ->
Mina_net2.Validation_callback.t ->
Logger.t option ->
unit