package tezos-validation

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type parameters = {
  1. context_root : string;
  2. protocol_root : string;
  3. genesis : Tezos_base.Genesis.t;
  4. sandbox_parameters : Data_encoding.json option;
  5. user_activated_upgrades : Tezos_base.User_activated.upgrades;
  6. user_activated_protocol_overrides : Tezos_base.User_activated.protocol_overrides;
}
type request =
  1. | Init
  2. | Validate of {
    1. chain_id : Tezos_crypto.Chain_id.t;
    2. block_header : Tezos_base.Block_header.t;
    3. predecessor_block_header : Tezos_base.Block_header.t;
    4. predecessor_block_metadata_hash : Tezos_crypto.Block_metadata_hash.t option;
    5. predecessor_ops_metadata_hash : Tezos_crypto.Operation_metadata_list_list_hash.t option;
    6. operations : Tezos_base.Operation.t list list;
    7. max_operations_ttl : int;
    }
  3. | Commit_genesis of {
    1. chain_id : Tezos_crypto.Chain_id.t;
    }
  4. | Fork_test_chain of {
    1. context_hash : Tezos_crypto.Context_hash.t;
    2. forked_header : Tezos_base.Block_header.t;
    }
  5. | Terminate
  6. | Restore_context_integrity
val request_pp : Stdlib.Format.formatter -> request -> unit
val magic : Stdlib.Bytes.t
val parameters_encoding : parameters Data_encoding.t
val request_encoding : request Data_encoding.t
val send : Lwt_io.output_channel -> 'a Data_encoding.t -> 'a -> unit Lwt.t
val recv_result : Lwt_io.input_channel -> 'a Data_encoding.t -> ('a, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val socket_path_prefix : string

The prefix for the validation socket filename.

Do not use it directly except for documentation purposes; use socket_path instead.

val socket_path : socket_dir:string -> pid:int -> string

Get the validation socket path.

socket_dir is the directory where the file should be put. pid is the process ID of the validator process.

val create_socket_listen : canceler:Lwt_canceler.t -> max_requests:int -> socket_path:string -> (Lwt_unix.file_descr, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val create_socket_connect : canceler:Lwt_canceler.t -> socket_path:string -> Lwt_unix.file_descr Lwt.t
OCaml

Innovation. Community. Security.