mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
*: 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:
@@ -287,7 +287,7 @@ fn real_overseer<S: futures::task::Spawn>(
|
||||
network_bridge: DummySubsystem,
|
||||
};
|
||||
Overseer::new(
|
||||
leaves,
|
||||
leaves,
|
||||
all_subsystems,
|
||||
s,
|
||||
).map_err(|e| ServiceError::Other(format!("Failed to create an Overseer: {:?}", e)))
|
||||
@@ -299,7 +299,7 @@ macro_rules! new_full {
|
||||
(
|
||||
$config:expr,
|
||||
$collating_for:expr,
|
||||
$authority_discovery_enabled:expr,
|
||||
$authority_discovery_disabled:expr,
|
||||
$grandpa_pause:expr,
|
||||
$runtime:ty,
|
||||
$dispatch:ty,
|
||||
@@ -600,7 +600,7 @@ pub fn polkadot_new_full(
|
||||
mut config: Configuration,
|
||||
collating_for: Option<(CollatorId, ParaId)>,
|
||||
_max_block_data_size: Option<u64>,
|
||||
_authority_discovery_enabled: bool,
|
||||
_authority_discovery_disabled: bool,
|
||||
_slot_duration: u64,
|
||||
grandpa_pause: Option<(u32, u32)>,
|
||||
)
|
||||
@@ -617,7 +617,7 @@ pub fn polkadot_new_full(
|
||||
let (components, client) = new_full!(
|
||||
config,
|
||||
collating_for,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
polkadot_runtime::RuntimeApi,
|
||||
PolkadotExecutor,
|
||||
@@ -632,7 +632,7 @@ pub fn kusama_new_full(
|
||||
mut config: Configuration,
|
||||
collating_for: Option<(CollatorId, ParaId)>,
|
||||
_max_block_data_size: Option<u64>,
|
||||
_authority_discovery_enabled: bool,
|
||||
_authority_discovery_disabled: bool,
|
||||
_slot_duration: u64,
|
||||
grandpa_pause: Option<(u32, u32)>,
|
||||
) -> Result<(
|
||||
@@ -649,7 +649,7 @@ pub fn kusama_new_full(
|
||||
let (components, client) = new_full!(
|
||||
config,
|
||||
collating_for,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
kusama_runtime::RuntimeApi,
|
||||
KusamaExecutor,
|
||||
@@ -664,7 +664,7 @@ pub fn westend_new_full(
|
||||
mut config: Configuration,
|
||||
collating_for: Option<(CollatorId, ParaId)>,
|
||||
_max_block_data_size: Option<u64>,
|
||||
_authority_discovery_enabled: bool,
|
||||
_authority_discovery_disabled: bool,
|
||||
_slot_duration: u64,
|
||||
grandpa_pause: Option<(u32, u32)>,
|
||||
)
|
||||
@@ -681,7 +681,7 @@ pub fn westend_new_full(
|
||||
let (components, client) = new_full!(
|
||||
config,
|
||||
collating_for,
|
||||
authority_discovery_enabled,
|
||||
authority_discovery_disabled,
|
||||
grandpa_pause,
|
||||
westend_runtime::RuntimeApi,
|
||||
WestendExecutor,
|
||||
|
||||
Reference in New Issue
Block a user