Skip to content

Commit 50e5dd2

Browse files
ndkazubkchrdmitry-markinlexnv
authored
Remove collation-generation subsystem from validator nodes (#6832)
# Description Issue #6476 Collation-generation is not needed for validators node, and should be removed. ## Implementation Use a `DummySubsystem` for `collation_generation` --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Alexandru Vasile <[email protected]>
1 parent 7cc5cdd commit 50e5dd2

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

polkadot/node/service/src/overseer.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub fn validator_overseer_builder<Spawner, RuntimeClient>(
210210
AuthorityDiscoveryService,
211211
>,
212212
ChainApiSubsystem<RuntimeClient>,
213-
CollationGenerationSubsystem,
213+
DummySubsystem,
214214
CollatorProtocolSubsystem,
215215
ApprovalDistributionSubsystem,
216216
ApprovalVotingSubsystem,
@@ -237,6 +237,7 @@ where
237237
let network_bridge_metrics: NetworkBridgeMetrics = Metrics::register(registry)?;
238238
let approval_voting_parallel_metrics: ApprovalVotingParallelMetrics =
239239
Metrics::register(registry)?;
240+
240241
let builder = Overseer::builder()
241242
.network_bridge_tx(NetworkBridgeTxSubsystem::new(
242243
network_service.clone(),
@@ -295,7 +296,7 @@ where
295296
))
296297
.pvf_checker(PvfCheckerSubsystem::new(keystore.clone(), Metrics::register(registry)?))
297298
.chain_api(ChainApiSubsystem::new(runtime_client.clone(), Metrics::register(registry)?))
298-
.collation_generation(CollationGenerationSubsystem::new(Metrics::register(registry)?))
299+
.collation_generation(DummySubsystem)
299300
.collator_protocol({
300301
let side = match is_parachain_node {
301302
IsParachainNode::Collator(_) | IsParachainNode::FullNode =>
@@ -434,7 +435,7 @@ pub fn validator_with_parallel_overseer_builder<Spawner, RuntimeClient>(
434435
AuthorityDiscoveryService,
435436
>,
436437
ChainApiSubsystem<RuntimeClient>,
437-
CollationGenerationSubsystem,
438+
DummySubsystem,
438439
CollatorProtocolSubsystem,
439440
DummySubsystem,
440441
DummySubsystem,
@@ -519,7 +520,7 @@ where
519520
))
520521
.pvf_checker(PvfCheckerSubsystem::new(keystore.clone(), Metrics::register(registry)?))
521522
.chain_api(ChainApiSubsystem::new(runtime_client.clone(), Metrics::register(registry)?))
522-
.collation_generation(CollationGenerationSubsystem::new(Metrics::register(registry)?))
523+
.collation_generation(DummySubsystem)
523524
.collator_protocol({
524525
let side = match is_parachain_node {
525526
IsParachainNode::Collator(_) | IsParachainNode::FullNode =>

prdoc/pr_6832.prdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
2+
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
3+
4+
title: "Remove collation-generation subsystem from validator nodes"
5+
6+
doc:
7+
- audience: Node Dev
8+
description: |
9+
Collation-generation is only needed for Collators, and therefore not needed for validators
10+
11+
crates:
12+
- name: polkadot-service
13+
bump: patch

0 commit comments

Comments
 (0)