package tezos-shell

  1. Overview
  2. Docs

Tezos Shell - Main entry point of the validation scheduler.

type t
val shutdown : t -> unit Lwt.t
val activate : t -> start_prevalidator:bool -> validator_process:Block_validator_process.t -> Tezos_store.Store.chain_store -> (Chain_validator.t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

Start the validation scheduler of a given chain.

val get_active_chains : t -> Tezos_crypto.Chain_id.t list
val validate_block : t -> ?force:bool -> ?chain_id:Tezos_crypto.Chain_id.t -> Stdlib.Bytes.t -> Tezos_base.Operation.t list list -> (Tezos_crypto.Block_hash.t * (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

Force the validation of a block.

Monitor all the valid block (for all activate chains).

val chains_watcher : t -> (Tezos_crypto.Chain_id.t * bool) Lwt_stream.t * Lwt_watcher.stopper
val inject_operation : t -> ?chain_id:Tezos_crypto.Chain_id.t -> Tezos_base.Operation.t -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val distributed_db : t -> Distributed_db.t
OCaml

Innovation. Community. Security.