revert enabling authority discovery by default (#1532)

This commit is contained in:
André Silva
2020-08-05 13:10:43 +01:00
committed by GitHub
parent f554868cd4
commit a7b6c91f80
5 changed files with 31 additions and 34 deletions
+3 -6
View File
@@ -59,10 +59,7 @@ pub struct RunCmd {
#[structopt(long = "force-westend")]
pub force_westend: 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.
/// Enable the authority discovery module on validator or sentry nodes.
///
/// When enabled:
///
@@ -73,8 +70,8 @@ pub struct RunCmd {
/// (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,
#[structopt(long = "enable-authority-discovery")]
pub authority_discovery_enabled: bool,
/// Setup a GRANDPA scheduled voting pause.
///
+2 -2
View File
@@ -114,7 +114,7 @@ pub fn run() -> Result<()> {
set_default_ss58_version(chain_spec);
let authority_discovery_disabled = cli.run.authority_discovery_disabled;
let authority_discovery_enabled = cli.run.authority_discovery_enabled;
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
None
} else {
@@ -138,7 +138,7 @@ pub fn run() -> Result<()> {
config,
None,
None,
authority_discovery_disabled,
authority_discovery_enabled,
6000,
grandpa_pause,
).map(|r| r.0),