package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-shell-libs.shell/Tezos_shell/Validator/index.html

Module Tezos_shell.ValidatorSource

Tezos Shell - Main entry point of the validation scheduler.

Sourcetype t
Sourceval shutdown : t -> unit Lwt.t
Sourceval activate : t -> start_prevalidator:bool -> validator_process:Block_validator_process.t -> Tezos_store.Store.chain_store -> Chain_validator.t Tezos_base.TzPervasives.tzresult Lwt.t

Start the validation scheduler of a given chain.

Sourceval get : t -> Tezos_base.TzPervasives.Chain_id.t -> Chain_validator.t Tezos_base.TzPervasives.tzresult
Sourceval get_active_chains : t -> Tezos_base.TzPervasives.Chain_id.t list
Sourceval validate_block : t -> ?force:bool -> ?chain_id:Tezos_base.TzPervasives.Chain_id.t -> Tezos_base.TzPervasives.Bytes.t -> Tezos_base.Operation.t list list -> (Tezos_base.TzPervasives.Block_hash.t * unit Tezos_base.TzPervasives.tzresult Lwt.t) Tezos_base.TzPervasives.tzresult Lwt.t

Force the validation of a block.

Sourceval watcher : t -> Tezos_store.Store.Block.t Lwt_stream.t * Lwt_watcher.stopper

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

Sourceval chains_watcher : t -> (Tezos_base.TzPervasives.Chain_id.t * bool) Lwt_stream.t * Lwt_watcher.stopper
Sourceval inject_operation : t -> ?chain_id:Tezos_base.TzPervasives.Chain_id.t -> force:bool -> Tezos_base.Operation.t -> unit Tezos_base.TzPervasives.tzresult Lwt.t

inject_operation t ?chain_id ~force op notifies the prevalidator worker associated with the chain_id of a new injected operation. Fails if the branch in op is not known in the given chain_id or if no prevalidator is associated with the chain_id. If no chain_id is provided, try to recover a chain_id from the branch in the operation data. Fails if no chain_id can be recovered unless force is set. If force is set, notify all the known prevalidator workers.

Sourceval distributed_db : t -> Distributed_db.t
OCaml

Innovation. Community. Security.