From 0487a4bd609eda0178c55da097b36f4e0ec6b88c Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Thu, 16 Feb 2023 13:34:45 -0700 Subject: [PATCH] hide commonly misused `--no-port-check` validator arg (#30306) --- docs/src/running-validator/validator-start.md | 6 ------ validator/src/cli.rs | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/src/running-validator/validator-start.md b/docs/src/running-validator/validator-start.md index 1a8aa0a391..268610171d 100644 --- a/docs/src/running-validator/validator-start.md +++ b/docs/src/running-validator/validator-start.md @@ -439,12 +439,6 @@ solana-validator ..."); otherwise, when logrotate sends its signal to the validator, the enclosing script will die and take the validator process with it. -### Disable port checks to speed up restarts - -Once your validator is operating normally, you can reduce the time it takes to -restart your validator by adding the `--no-port-check` flag to your -`solana-validator` command-line. - ### Using a ramdisk with spill-over into swap for the accounts database to reduce SSD wear If your machine has plenty of RAM, a tmpfs ramdisk diff --git a/validator/src/cli.rs b/validator/src/cli.rs index fbea526b67..9de9a605e5 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -195,6 +195,7 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { Arg::with_name("no_port_check") .long("no-port-check") .takes_value(false) + .hidden(true) .help("Do not perform TCP/UDP reachable port checks at start-up") ) .arg(