mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
@@ -417,13 +417,8 @@ where
|
|||||||
use polkadot_statement_distribution::StatementDistribution as StatementDistributionSubsystem;
|
use polkadot_statement_distribution::StatementDistribution as StatementDistributionSubsystem;
|
||||||
use polkadot_availability_recovery::AvailabilityRecoverySubsystem;
|
use polkadot_availability_recovery::AvailabilityRecoverySubsystem;
|
||||||
use polkadot_approval_distribution::ApprovalDistribution as ApprovalDistributionSubsystem;
|
use polkadot_approval_distribution::ApprovalDistribution as ApprovalDistributionSubsystem;
|
||||||
|
|
||||||
#[cfg(feature = "real-overseer")]
|
|
||||||
use polkadot_node_core_approval_voting::ApprovalVotingSubsystem;
|
use polkadot_node_core_approval_voting::ApprovalVotingSubsystem;
|
||||||
|
|
||||||
#[cfg(not(feature = "real-overseer"))]
|
|
||||||
let _ = approval_voting_config; // silence.
|
|
||||||
|
|
||||||
let all_subsystems = AllSubsystems {
|
let all_subsystems = AllSubsystems {
|
||||||
availability_distribution: AvailabilityDistributionSubsystem::new(
|
availability_distribution: AvailabilityDistributionSubsystem::new(
|
||||||
keystore.clone(),
|
keystore.clone(),
|
||||||
@@ -498,13 +493,10 @@ where
|
|||||||
approval_distribution: ApprovalDistributionSubsystem::new(
|
approval_distribution: ApprovalDistributionSubsystem::new(
|
||||||
Metrics::register(registry)?,
|
Metrics::register(registry)?,
|
||||||
),
|
),
|
||||||
#[cfg(feature = "real-overseer")]
|
|
||||||
approval_voting: ApprovalVotingSubsystem::with_config(
|
approval_voting: ApprovalVotingSubsystem::with_config(
|
||||||
approval_voting_config,
|
approval_voting_config,
|
||||||
keystore.clone(),
|
keystore.clone(),
|
||||||
)?,
|
)?,
|
||||||
#[cfg(not(feature = "real-overseer"))]
|
|
||||||
approval_voting: polkadot_subsystem::DummySubsystem,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Overseer::new(
|
Overseer::new(
|
||||||
|
|||||||
Reference in New Issue
Block a user