mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
This reverts commita7b6c91f80. The authority discovery module was initially enabled by default on validator and sentry nodes with commit59f5eb4. This change was later on reverted ina7b6c91. With this commit the authority discovery module is again enabled by default.
This commit is contained in:
@@ -329,7 +329,7 @@ impl<C> NewFull<C> {
|
||||
#[cfg(feature = "full-node")]
|
||||
pub fn new_full<RuntimeApi, Executor>(
|
||||
mut config: Configuration,
|
||||
authority_discovery_enabled: bool,
|
||||
authority_discovery_disabled: bool,
|
||||
grandpa_pause: Option<(u32, u32)>,
|
||||
) -> Result<NewFull<Arc<FullClient<RuntimeApi, Executor>>>, Error>
|
||||
where
|
||||
@@ -537,7 +537,7 @@ pub fn new_full<RuntimeApi, Executor>(
|
||||
use sc_network::Event;
|
||||
use futures::StreamExt;
|
||||
|
||||
if authority_discovery_enabled {
|
||||
if !authority_discovery_disabled {
|
||||
let (sentries, authority_discovery_role) = match role {
|
||||
Role::Authority { ref sentry_nodes } => (
|
||||
sentry_nodes.clone(),
|
||||
@@ -744,31 +744,31 @@ pub fn build_light(config: Configuration) -> Result<(TaskManager, RpcHandlers),
|
||||
#[cfg(feature = "full-node")]
|
||||
pub fn build_full(
|
||||
config: Configuration,
|
||||
authority_discovery_enabled: bool,
|
||||
authority_discovery_disabled: bool,
|
||||
grandpa_pause: Option<(u32, u32)>,
|
||||
) -> Result<NewFull<Client>, ServiceError> {
|
||||
if config.chain_spec.is_rococo() {
|
||||
new_full::<rococo_runtime::RuntimeApi, RococoExecutor>(
|
||||
config,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
).map(|full| full.with_client(Client::Rococo))
|
||||
} else if config.chain_spec.is_kusama() {
|
||||
new_full::<kusama_runtime::RuntimeApi, KusamaExecutor>(
|
||||
config,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
).map(|full| full.with_client(Client::Kusama))
|
||||
} else if config.chain_spec.is_westend() {
|
||||
new_full::<westend_runtime::RuntimeApi, WestendExecutor>(
|
||||
config,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
).map(|full| full.with_client(Client::Westend))
|
||||
} else {
|
||||
new_full::<polkadot_runtime::RuntimeApi, PolkadotExecutor>(
|
||||
config,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
).map(|full| full.with_client(Client::Polkadot))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user