package tezos-shell-services

  1. Overview
  2. Docs
type 'a t =
  1. | Flush : Tezos_crypto.Block_hash.t * Chain_validator_worker_state.Event.update * Tezos_crypto.Block_hash.Set.t * Tezos_crypto.Operation_hash.Set.t -> unit t
    (*

    The chain changed, the mempool is being notified of the new state.

    *)
  2. | Notify : Tezos_base.P2p_peer.Id.t * Tezos_base.Mempool.t -> unit t
    (*

    The given peer sent this mempool.

    *)
  3. | Leftover : unit t
    (*

    Operations not yet processed should be processed.

    *)
  4. | Inject : {
    1. op : Tezos_base.Operation.t;
    2. force : bool;
    } -> unit t
    (*

    Operation has been locally injected (sent) to the node.

    *)
  5. | Arrived : Tezos_crypto.Operation_hash.t * Tezos_base.Operation.t -> unit t
    (*

    Operation was fetched by the node.

    *)
  6. | Advertise : unit t
    (*

    Current mempool should be advertised to all known peers.

    *)
  7. | Ban : Tezos_crypto.Operation_hash.t -> unit t
    (*

    User requested the node to ban operation with this hash.

    *)
type view =
  1. | View : _ t -> view
val view : 'a t -> view
val encoding : view Data_encoding.t
val pp : Format.formatter -> view -> unit