Mavryk_shell.Node
val get_version : t -> Mavryk_version.Mavkit_node_version.t
type config = {
genesis : Mavryk_base.Genesis.t;
chain_name : Mavryk_base.Distributed_db_version.Name.t;
sandboxed_chain_name : Mavryk_base.Distributed_db_version.Name.t;
user_activated_upgrades : Mavryk_base.User_activated.upgrades;
user_activated_protocol_overrides : Mavryk_base.User_activated.protocol_overrides;
operation_metadata_size_limit : Mavryk_shell_services.Shell_limits.operation_metadata_size_limit;
data_dir : string;
internal_events : Mavryk_base.Internal_event_config.t;
store_root : string;
context_root : string;
protocol_root : string;
patch_context : (Mavryk_protocol_environment.Context.t ->
Mavryk_protocol_environment.Context.t
Mavryk_base.TzPervasives.tzresult
Lwt.t)
option;
p2p : (Mavryk_p2p.P2p.config * Mavryk_p2p_services.P2p_limits.t) option;
target : (Mavryk_base.TzPervasives.Block_hash.t * int32) option;
disable_mempool : bool;
If true
, all non-empty mempools will be ignored.
enable_testchain : bool;
If false
, testchain related messages will be ignored.
dal_config : Mavryk_crypto_dal.Cryptobox.Config.t;
}
val create :
?sandboxed:bool ->
?sandbox_parameters:Mavryk_base.TzPervasives.Data_encoding.json ->
singleprocess:bool ->
version:string ->
commit_info:Mavryk_version.Mavkit_node_version.commit_info ->
config ->
Mavryk_shell_services.Shell_limits.peer_validator_limits ->
Mavryk_shell_services.Shell_limits.block_validator_limits ->
Mavryk_shell_services.Shell_limits.prevalidator_limits ->
Mavryk_shell_services.Shell_limits.chain_validator_limits ->
Mavryk_shell_services.History_mode.t option ->
(t, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val shutdown : t -> unit Lwt.t
val build_rpc_directory :
node_version:Mavryk_version.Mavkit_node_version.t ->
commit_info:Mavryk_version.Mavkit_node_version.commit_info ->
t ->
unit Mavryk_rpc.Directory.t
build_rpc_directory ~node_version ~commit_info node
builds a Mavryk RPC directory for the node by gathering all the subdirectories. node_version
, commit_info
and node
contain all informations required to build such a directory.