From fd87fe9545a8244e1b93f0bef0f055360b93d0ff Mon Sep 17 00:00:00 2001 From: vgantchev Date: Fri, 25 Oct 2024 13:14:03 +0200 Subject: [PATCH] fix zombienet RC chainspec --- launch-configs/zombienet/local.json | 9 +++--- node/src/chain_spec/mod.rs | 47 ++++++++++++----------------- 2 files changed, 24 insertions(+), 32 deletions(-) diff --git a/launch-configs/zombienet/local.json b/launch-configs/zombienet/local.json index 71567ca663..e6888f2985 100644 --- a/launch-configs/zombienet/local.json +++ b/launch-configs/zombienet/local.json @@ -15,11 +15,10 @@ "patch": { "configuration": { "config": { - "scheduling_lookahead": 2, - "async_backing_params": { - "max_candidate_depth": 3, - "allowed_ancestry_len": 2 - } + "async_backing_params": { + "max_candidate_depth": 3, + "allowed_ancestry_len": 2 + } } } } diff --git a/node/src/chain_spec/mod.rs b/node/src/chain_spec/mod.rs index f68794a008..6db1dedbab 100644 --- a/node/src/chain_spec/mod.rs +++ b/node/src/chain_spec/mod.rs @@ -106,7 +106,7 @@ pub fn parachain_genesis( }) .collect::>(), }, - "assetRegistry": { + "assetRegistry": { "registeredAssets": registered_assets.clone(), "nativeAssetName": TOKEN_SYMBOL.as_bytes().to_vec(), "nativeExistentialDeposit": NATIVE_EXISTENTIAL_DEPOSIT, @@ -114,36 +114,34 @@ pub fn parachain_genesis( "aura": { "authorities": Vec::::new() }, - "auraExt": { + "auraExt": {}, + "balances": { + "balances": endowed_accounts + .iter() + .cloned() + .map(|k| (k.0.clone(), k.1 * UNITS)) + .collect::>(), }, - "balances": { - "balances": endowed_accounts - .iter() - .cloned() - .map(|k| (k.0.clone(), k.1 * UNITS)) - .collect::>(), - }, "collatorSelection": { "invulnerables": initial_authorities.0.iter().cloned().map(|(acc, _)| acc).collect::>(), "candidacyBond": initial_authorities.1, "desiredCandidates": 0u32, }, - "duster": { - "accountBlacklist": vec![get_account_id_from_seed::("Duster")], + "duster": { + "accountBlacklist": vec![get_account_id_from_seed::("Duster")], "rewardAccount": Some(get_account_id_from_seed::("Duster")), "dustAccount": Some(get_account_id_from_seed::("Duster")) }, - "emaOracle": { + "emaOracle": { }, - "multiTransactionPayment": { + "multiTransactionPayment": { "currencies": accepted_assets, "accountCurrencies": Vec::<(AccountId, AssetId)>::new(), }, - "parachainInfo": { - "parachainId": parachain_id, - }, - "polkadotXcm": { + "parachainInfo": { + "parachainId": parachain_id, }, + "polkadotXcm": {}, "technicalCommittee": { "members": tech_committee_members, }, @@ -161,14 +159,9 @@ pub fn parachain_genesis( .collect::>() }, }, - "treasury": { - }, - "vesting": { - }, - "xykWarehouseLm": { - }, - "xykLiquidityMining": { - }, - } - ) + "treasury": {}, + "vesting": {}, + "xykWarehouseLm": {}, + "xykLiquidityMining": {}, + }) }