From dedfe6da9e4bc4c774e01f01b5e8cf5414cdd8de Mon Sep 17 00:00:00 2001 From: Squirrel Date: Thu, 23 Jun 2022 12:41:44 +0100 Subject: [PATCH] rename now shared node creation function (#1402) --- cumulus/polkadot-parachain/src/command.rs | 6 +++--- cumulus/polkadot-parachain/src/service.rs | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cumulus/polkadot-parachain/src/command.rs b/cumulus/polkadot-parachain/src/command.rs index ebacb0def5..2c344b2400 100644 --- a/cumulus/polkadot-parachain/src/command.rs +++ b/cumulus/polkadot-parachain/src/command.rs @@ -548,21 +548,21 @@ pub fn run() -> Result<()> { info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" }); match config.chain_spec.runtime() { - Runtime::Statemint => crate::service::start_statemint_node::< + Runtime::Statemint => crate::service::start_generic_aura_node::< statemint_runtime::RuntimeApi, StatemintAuraId, >(config, polkadot_config, collator_options, id, hwbench) .await .map(|r| r.0) .map_err(Into::into), - Runtime::Statemine => crate::service::start_statemint_node::< + Runtime::Statemine => crate::service::start_generic_aura_node::< statemine_runtime::RuntimeApi, AuraId, >(config, polkadot_config, collator_options, id, hwbench) .await .map(|r| r.0) .map_err(Into::into), - Runtime::Westmint => crate::service::start_statemint_node::< + Runtime::Westmint => crate::service::start_generic_aura_node::< westmint_runtime::RuntimeApi, AuraId, >(config, polkadot_config, collator_options, id, hwbench) diff --git a/cumulus/polkadot-parachain/src/service.rs b/cumulus/polkadot-parachain/src/service.rs index f76c7997fb..a694a9b113 100644 --- a/cumulus/polkadot-parachain/src/service.rs +++ b/cumulus/polkadot-parachain/src/service.rs @@ -1165,8 +1165,9 @@ where )) } -/// Start a statemint/statemine/westmint parachain node. -pub async fn start_statemint_node( +/// Start an aura powered parachain node. +/// (collective-polkadot and statemine/t use this) +pub async fn start_generic_aura_node( parachain_config: Configuration, polkadot_config: Configuration, collator_options: CollatorOptions,