mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Remove superflous parameter overseer_enable_anyways and make parachain node type more explicit (#7617)
* Remove superflous parameter `overseer_enable_anyways` We don't need this flag, as we don't need the overseer enabled when the node isn't a collator or validator. * Rename `IsCollator` to `IsParachainNode` `IsParachainNode` is more expressive and also encapsulates the state of the parachain node being a full node. Some functionality like the overseer needs to run always when the node runs alongside a parachain node. The parachain node needs the overseer to e.g. recover PoVs. Other things like candidate validation or pvf checking are only required for when the node is running as validator. * FMT * Fix CI
This commit is contained in:
@@ -21,6 +21,7 @@ use polkadot_node_primitives::CollationGenerationConfig;
|
||||
use polkadot_node_subsystem::messages::{CollationGenerationMessage, CollatorProtocolMessage};
|
||||
use polkadot_primitives::Id as ParaId;
|
||||
use sc_cli::{Error as SubstrateCliError, SubstrateCli};
|
||||
use sc_service::Role;
|
||||
use sp_core::hexdisplay::HexDisplay;
|
||||
use test_parachain_undying_collator::Collator;
|
||||
|
||||
@@ -57,10 +58,15 @@ fn main() -> Result<()> {
|
||||
let collator = Collator::new(cli.run.pov_size, cli.run.pvf_complexity);
|
||||
|
||||
config.disable_beefy = true;
|
||||
// Zombienet is spawning all collators currently with the same CLI, this means it
|
||||
// sets `--validator` and this is wrong here.
|
||||
config.role = Role::Full;
|
||||
let full_node = polkadot_service::build_full(
|
||||
config,
|
||||
polkadot_service::NewFullParams {
|
||||
is_collator: polkadot_service::IsCollator::Yes(collator.collator_key()),
|
||||
is_parachain_node: polkadot_service::IsParachainNode::Collator(
|
||||
collator.collator_key(),
|
||||
),
|
||||
grandpa_pause: None,
|
||||
jaeger_agent: None,
|
||||
telemetry_worker_handle: None,
|
||||
@@ -70,7 +76,6 @@ fn main() -> Result<()> {
|
||||
workers_path: None,
|
||||
workers_names: None,
|
||||
|
||||
overseer_enable_anyways: false,
|
||||
overseer_gen: polkadot_service::RealOverseerGen,
|
||||
overseer_message_channel_capacity_override: None,
|
||||
malus_finality_delay: None,
|
||||
|
||||
Reference in New Issue
Block a user