2017-01-30 22:10:16 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2017-01-30 22:10:16 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
type t = {
|
|
|
|
data_dir: string option ;
|
|
|
|
config_file: string ;
|
|
|
|
min_connections: int option ;
|
|
|
|
expected_connections: int option ;
|
|
|
|
max_connections: int option ;
|
|
|
|
max_download_speed: int option ;
|
|
|
|
max_upload_speed: int option ;
|
2017-04-18 20:32:31 +04:00
|
|
|
binary_chunks_size: int option ;
|
2017-01-24 17:36:42 +04:00
|
|
|
peer_table_size: int option ;
|
2017-01-30 22:10:16 +04:00
|
|
|
expected_pow: float option ;
|
|
|
|
peers: string list ;
|
|
|
|
no_bootstrap_peers: bool ;
|
|
|
|
listen_addr: string option ;
|
|
|
|
rpc_listen_addr: string option ;
|
|
|
|
closed: bool ;
|
|
|
|
cors_origins: string list ;
|
|
|
|
cors_headers: string list ;
|
|
|
|
rpc_tls: Node_config_file.tls option ;
|
2018-02-08 13:51:01 +04:00
|
|
|
log_output: Logging_unix.Output.t option ;
|
2017-11-11 06:34:12 +04:00
|
|
|
bootstrap_threshold: int option ;
|
2017-01-30 22:10:16 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
module Term : sig
|
|
|
|
val args: t Cmdliner.Term.t
|
|
|
|
val data_dir: string option Cmdliner.Term.t
|
|
|
|
val config_file: string option Cmdliner.Term.t
|
|
|
|
end
|
|
|
|
|
2017-08-09 18:09:41 +04:00
|
|
|
val read_and_patch_config_file: ?ignore_bootstrap_peers:bool -> t -> Node_config_file.t tzresult Lwt.t
|
2017-01-30 22:10:16 +04:00
|
|
|
|
|
|
|
module Manpage : sig
|
|
|
|
val misc_section: string
|
|
|
|
val args: Cmdliner.Manpage.block list
|
|
|
|
val bugs: Cmdliner.Manpage.block list
|
|
|
|
end
|