mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
rename now shared node creation function (#1402)
This commit is contained in:
@@ -548,21 +548,21 @@ pub fn run() -> Result<()> {
|
|||||||
info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
|
info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
|
||||||
|
|
||||||
match config.chain_spec.runtime() {
|
match config.chain_spec.runtime() {
|
||||||
Runtime::Statemint => crate::service::start_statemint_node::<
|
Runtime::Statemint => crate::service::start_generic_aura_node::<
|
||||||
statemint_runtime::RuntimeApi,
|
statemint_runtime::RuntimeApi,
|
||||||
StatemintAuraId,
|
StatemintAuraId,
|
||||||
>(config, polkadot_config, collator_options, id, hwbench)
|
>(config, polkadot_config, collator_options, id, hwbench)
|
||||||
.await
|
.await
|
||||||
.map(|r| r.0)
|
.map(|r| r.0)
|
||||||
.map_err(Into::into),
|
.map_err(Into::into),
|
||||||
Runtime::Statemine => crate::service::start_statemint_node::<
|
Runtime::Statemine => crate::service::start_generic_aura_node::<
|
||||||
statemine_runtime::RuntimeApi,
|
statemine_runtime::RuntimeApi,
|
||||||
AuraId,
|
AuraId,
|
||||||
>(config, polkadot_config, collator_options, id, hwbench)
|
>(config, polkadot_config, collator_options, id, hwbench)
|
||||||
.await
|
.await
|
||||||
.map(|r| r.0)
|
.map(|r| r.0)
|
||||||
.map_err(Into::into),
|
.map_err(Into::into),
|
||||||
Runtime::Westmint => crate::service::start_statemint_node::<
|
Runtime::Westmint => crate::service::start_generic_aura_node::<
|
||||||
westmint_runtime::RuntimeApi,
|
westmint_runtime::RuntimeApi,
|
||||||
AuraId,
|
AuraId,
|
||||||
>(config, polkadot_config, collator_options, id, hwbench)
|
>(config, polkadot_config, collator_options, id, hwbench)
|
||||||
|
|||||||
@@ -1165,8 +1165,9 @@ where
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start a statemint/statemine/westmint parachain node.
|
/// Start an aura powered parachain node.
|
||||||
pub async fn start_statemint_node<RuntimeApi, AuraId: AppKey>(
|
/// (collective-polkadot and statemine/t use this)
|
||||||
|
pub async fn start_generic_aura_node<RuntimeApi, AuraId: AppKey>(
|
||||||
parachain_config: Configuration,
|
parachain_config: Configuration,
|
||||||
polkadot_config: Configuration,
|
polkadot_config: Configuration,
|
||||||
collator_options: CollatorOptions,
|
collator_options: CollatorOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user