From 4084820f0ee0f1f0b7ccfd4624a745b514ab2da3 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Mon, 11 May 2020 14:14:07 +0200 Subject: [PATCH] cli/src/cli.rs: Document --enable-authority-discovery flag (#1085) --- polkadot/cli/src/cli.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/polkadot/cli/src/cli.rs b/polkadot/cli/src/cli.rs index 8b6a6b5922..fd4794190e 100644 --- a/polkadot/cli/src/cli.rs +++ b/polkadot/cli/src/cli.rs @@ -59,7 +59,15 @@ pub struct RunCmd { #[structopt(long = "force-westend")] pub force_westend: bool, - #[allow(missing_docs)] + /// Enable the authority discovery module. + /// + /// (1) As a validator node: Make oneself discoverable by publishing either + /// ones own network addresses, or the ones of ones sentry nodes + /// (configured via the `sentry-nodes` flag). + /// + /// (2) As a validator or sentry node: Discover addresses of validators or + /// addresses of their sentry nodes and maintain a permanent connection + /// to a subset. #[structopt(long = "enable-authority-discovery")] pub authority_discovery_enabled: bool,