From 423af85c7641fb1577913449746eb8a4fb24f47f Mon Sep 17 00:00:00 2001 From: Philippe Bidinger Date: Tue, 11 Dec 2018 16:35:58 +0100 Subject: [PATCH] online doc for --connections --- src/bin_node/node_shared_arg.ml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin_node/node_shared_arg.ml b/src/bin_node/node_shared_arg.ml index bc7351f2b..a3d35b7f4 100644 --- a/src/bin_node/node_shared_arg.ml +++ b/src/bin_node/node_shared_arg.ml @@ -71,7 +71,7 @@ let wrap ~f:(fun (cert, key) -> { Node_config_file.cert ; key }) rpc_tls in - (* when `--expected-connections` is used, + (* when `--connections` is used, override all the bounds defined in the configuration file. *) let bootstrap_threshold, min_connections, expected_connections, max_connections, @@ -166,7 +166,11 @@ module Term = struct let connections = let doc = - "The number of running connections that we aim for." in + "Sets min_connections, expected_connections, max_connections to NUM / 2, \ + NUM, (3 * NUM) / 2, respectively. Sets peer_table_size to 8 * NUM \ + unless it is already defined in the configuration file. Sets \ + bootstrap_threshold to min(NUM / 4, 2) unless it is already defined in \ + the configuration file." in Arg.(value & opt (some int) None & info ~docs ~doc ~docv:"NUM" ["connections"])