Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type parameters = {
context_root : string;
protocol_root : string;
genesis : Tezos_base.Genesis.t;
sandbox_parameters : Data_encoding.json option;
user_activated_upgrades : Tezos_base.User_activated.upgrades;
user_activated_protocol_overrides : Tezos_base.User_activated.protocol_overrides;
}
type request =
| Init
| Validate of {
chain_id : Tezos_crypto.Chain_id.t;
block_header : Tezos_base.Block_header.t;
predecessor_block_header : Tezos_base.Block_header.t;
predecessor_block_metadata_hash : Tezos_crypto.Block_metadata_hash.t option;
predecessor_ops_metadata_hash : Tezos_crypto.Operation_metadata_list_list_hash.t
option;
operations : Tezos_base.Operation.t list list;
max_operations_ttl : int;
}
| Commit_genesis of {
chain_id : Tezos_crypto.Chain_id.t;
}
| Fork_test_chain of {
context_hash : Tezos_crypto.Context_hash.t;
forked_header : Tezos_base.Block_header.t;
}
| Terminate
| Restore_context_integrity
val request_pp : Stdlib.Format.formatter -> request -> unit
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 : Lwt_io.input_channel -> 'a Data_encoding.t -> 'a Lwt.t
val recv_result :
Lwt_io.input_channel ->
'a Data_encoding.t ->
('a, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
The prefix for the validation socket filename.
Do not use it directly except for documentation purposes; use socket_path
instead.
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