mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Fix Asset Hub collator crashing when starting from genesis (#1788)
This commit is contained in:
@@ -836,21 +836,21 @@ pub fn run() -> Result<()> {
|
||||
info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
|
||||
|
||||
match config.chain_spec.runtime() {
|
||||
Runtime::AssetHubPolkadot => crate::service::start_generic_aura_node::<
|
||||
Runtime::AssetHubPolkadot => crate::service::start_asset_hub_node::<
|
||||
asset_hub_polkadot_runtime::RuntimeApi,
|
||||
AssetHubPolkadotAuraId,
|
||||
>(config, polkadot_config, collator_options, id, hwbench)
|
||||
.await
|
||||
.map(|r| r.0)
|
||||
.map_err(Into::into),
|
||||
Runtime::AssetHubKusama => crate::service::start_generic_aura_node::<
|
||||
Runtime::AssetHubKusama => crate::service::start_asset_hub_node::<
|
||||
asset_hub_kusama_runtime::RuntimeApi,
|
||||
AuraId,
|
||||
>(config, polkadot_config, collator_options, id, hwbench)
|
||||
.await
|
||||
.map(|r| r.0)
|
||||
.map_err(Into::into),
|
||||
Runtime::AssetHubWestend => crate::service::start_generic_aura_node::<
|
||||
Runtime::AssetHubWestend => crate::service::start_asset_hub_node::<
|
||||
asset_hub_westend_runtime::RuntimeApi,
|
||||
AuraId,
|
||||
>(config, polkadot_config, collator_options, id, hwbench)
|
||||
|
||||
Reference in New Issue
Block a user