*: Enable authority discovery by default (#1395)

* *: Enable authority discovery by default

Instead of having to explicitly enable the authority discovery module on
validator and sentry nodes, this commit enables the module by default.

Today there is no way for non validator or sentry nodes to run the
module. That might change in the future.

* service/src/lib: Fix typo in new_full! for test
This commit is contained in:
Max Inden
2020-07-14 00:19:48 +02:00
committed by GitHub
parent 7a8673f057
commit 59f5eb4c17
5 changed files with 37 additions and 32 deletions
+4 -4
View File
@@ -111,7 +111,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 {
@@ -132,7 +132,7 @@ pub fn run() -> Result<()> {
config,
None,
None,
authority_discovery_enabled,
authority_discovery_disabled,
6000,
grandpa_pause,
).map(|(components, _, _)| components)
@@ -145,7 +145,7 @@ pub fn run() -> Result<()> {
config,
None,
None,
authority_discovery_enabled,
authority_discovery_disabled,
6000,
grandpa_pause,
).map(|(components, _, _)| components)
@@ -158,7 +158,7 @@ pub fn run() -> Result<()> {
config,
None,
None,
authority_discovery_enabled,
authority_discovery_disabled,
6000,
grandpa_pause,
).map(|(components, _, _)| components)