Resource_pool.Difftype t = Mina_base.User_command.t listval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_ormodule Diff_error : sig ... endmodule Rejected : sig ... endtype Structured_log_events.t += | Transactions_received of {
} |
val transactions_received_structured_events_id : Structured_log_events.idval transactions_received_structured_events_repr : Structured_log_events.reprinclude Intf.Resource_pool_diff_intf
with type t := t
and type pool := t
and type rejected = Rejected.tval 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 -> verifiedtype rejected = Rejected.tPart of the diff that was not added to the resource pool
val 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 :
t ->
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 :
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.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