mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Do not run unneeded subsystems on collator and its alongside node (#3061)
Currently, collators and their alongside nodes spin up a full-scale overseer running a bunch of subsystems that are not needed if the node is not a validator. That was considered to be harmless; however, we've got problems with unused subsystems getting stalled for a reason not currently known, resulting in the overseer exiting and bringing down the whole node. This PR aims to only run needed subsystems on such nodes, replacing the rest with `DummySubsystem`. It also enables collator-optimized availability recovery subsystem implementation. Partially solves #1730.
This commit is contained in:
@@ -299,7 +299,7 @@ pub fn run() -> Result<()> {
|
||||
match &cli.subcommand {
|
||||
None => run_node_inner(
|
||||
cli,
|
||||
service::RealOverseerGen,
|
||||
service::ValidatorOverseerGen,
|
||||
None,
|
||||
polkadot_node_metrics::logger_hook(),
|
||||
),
|
||||
|
||||
@@ -29,7 +29,7 @@ mod error;
|
||||
pub use service::{self, Block, CoreApi, IdentifyVariant, ProvideRuntimeApi, TFullClient};
|
||||
|
||||
#[cfg(feature = "malus")]
|
||||
pub use service::overseer::prepared_overseer_builder;
|
||||
pub use service::overseer::validator_overseer_builder;
|
||||
|
||||
#[cfg(feature = "cli")]
|
||||
pub use cli::*;
|
||||
|
||||
Reference in New Issue
Block a user