Revert "revert enabling authority discovery by default (#1532)" (#1807)

This reverts commit a7b6c91f80.

The authority discovery module was initially enabled by default on
validator and sentry nodes with commit 59f5eb4. This change was later on
reverted in a7b6c91. With this commit the authority discovery module is
again enabled by default.
This commit is contained in:
Max Inden
2020-10-13 14:09:10 +02:00
committed by GitHub
parent 23b7542fee
commit 60e66f6af0
4 changed files with 21 additions and 18 deletions
+4 -4
View File
@@ -126,7 +126,7 @@ pub fn run() -> Result<()> {
set_default_ss58_version(chain_spec);
let authority_discovery_enabled = cli.run.authority_discovery_enabled;
let authority_discovery_disabled = cli.run.authority_discovery_disabled;
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
None
} else {
@@ -148,7 +148,7 @@ pub fn run() -> Result<()> {
Role::Light => service::build_light(config).map(|(task_manager, _)| task_manager),
_ => service::build_full(
config,
authority_discovery_enabled,
authority_discovery_disabled,
grandpa_pause,
).map(|full| full.task_manager),
}
@@ -164,7 +164,7 @@ pub fn run() -> Result<()> {
set_default_ss58_version(chain_spec);
let authority_discovery_enabled = cli.run.authority_discovery_enabled;
let authority_discovery_disabled = cli.run.authority_discovery_disabled;
let grandpa_pause = if cli.run.grandpa_pause.is_empty() {
None
} else {
@@ -188,7 +188,7 @@ pub fn run() -> Result<()> {
network_status_sinks,
..
} = service::build_full(
config, authority_discovery_enabled, grandpa_pause,
config, authority_discovery_disabled, grandpa_pause,
)?;
let client = Arc::new(client);