package tezos-shell

  1. Overview
  2. Docs
type t
type limits = {
  1. new_head_request_timeout : Tezos_base.Time.System.Span.t;
  2. block_header_timeout : Tezos_base.Time.System.Span.t;
  3. block_operations_timeout : Tezos_base.Time.System.Span.t;
  4. protocol_timeout : Tezos_base.Time.System.Span.t;
  5. worker_limits : Tezos_base.Worker_types.limits;
}
val peer_id : t -> Tezos_base.P2p_peer.Id.t
val create : ?notify_new_block:(Tezos_store.Store.Block.t -> unit) -> ?notify_termination:(unit -> unit) -> limits -> Block_validator.t -> Distributed_db.chain_db -> Tezos_base.P2p_peer.Id.t -> (t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val shutdown : t -> unit Lwt.t
val notify_branch : t -> Tezos_base.Block_locator.t -> unit
val notify_head : t -> Tezos_base.Block_header.t -> unit
val running_workers : unit -> ((Tezos_crypto.Chain_id.t * Tezos_base.P2p_peer.Id.t) * t) list
OCaml

Innovation. Community. Security.