remove the --disable-authority-discovery flag & related (#1870)

This commit is contained in:
Peter Goodspeed-Niklaus
2020-10-28 15:18:34 +01:00
committed by GitHub
parent e2e57cb8f6
commit 62daee2286
4 changed files with 1 additions and 33 deletions
-17
View File
@@ -80,23 +80,6 @@ pub struct RunCmd {
#[structopt(long = "force-rococo")]
pub force_rococo: bool,
/// Disable the authority discovery module on validator or sentry nodes.
///
/// Enabled by default on validator and sentry nodes. Always disabled on non
/// validator or sentry nodes.
///
/// When enabled:
///
/// (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 = "disable-authority-discovery")]
pub authority_discovery_disabled: bool,
/// Setup a GRANDPA scheduled voting pause.
///
/// This parameter takes two values, namely a block number and a delay (in
-2
View File
@@ -125,7 +125,6 @@ pub fn run() -> Result<()> {
set_default_ss58_version(chain_spec);
let authority_discovery_disabled = cli.run.authority_discovery_disabled;
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
None
} else {
@@ -147,7 +146,6 @@ pub fn run() -> Result<()> {
Role::Light => service::build_light(config).map(|(task_manager, _)| task_manager),
_ => service::build_full(
config,
authority_discovery_disabled,
service::IsCollator::No,
grandpa_pause,
).map(|full| full.task_manager),