mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 21:57:55 +00:00
revert enabling authority discovery by default (#1532)
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user