Skip to content

Commit

Permalink
fix zombienet RC chainspec
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed Oct 25, 2024
1 parent a8b7c07 commit fd87fe9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 32 deletions.
9 changes: 4 additions & 5 deletions launch-configs/zombienet/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down
47 changes: 20 additions & 27 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,44 +106,42 @@ pub fn parachain_genesis(
})
.collect::<Vec<_>>(),
},
"assetRegistry": {
"assetRegistry": {
"registeredAssets": registered_assets.clone(),
"nativeAssetName": TOKEN_SYMBOL.as_bytes().to_vec(),
"nativeExistentialDeposit": NATIVE_EXISTENTIAL_DEPOSIT,
},
"aura": {
"authorities": Vec::<sp_consensus_aura::sr25519::AuthorityId>::new()
},
"auraExt": {
"auraExt": {},
"balances": {
"balances": endowed_accounts
.iter()
.cloned()
.map(|k| (k.0.clone(), k.1 * UNITS))
.collect::<Vec<_>>(),
},
"balances": {
"balances": endowed_accounts
.iter()
.cloned()
.map(|k| (k.0.clone(), k.1 * UNITS))
.collect::<Vec<_>>(),
},
"collatorSelection": {
"invulnerables": initial_authorities.0.iter().cloned().map(|(acc, _)| acc).collect::<Vec<_>>(),
"candidacyBond": initial_authorities.1,
"desiredCandidates": 0u32,
},
"duster": {
"accountBlacklist": vec![get_account_id_from_seed::<sr25519::Public>("Duster")],
"duster": {
"accountBlacklist": vec![get_account_id_from_seed::<sr25519::Public>("Duster")],
"rewardAccount": Some(get_account_id_from_seed::<sr25519::Public>("Duster")),
"dustAccount": Some(get_account_id_from_seed::<sr25519::Public>("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,
},
Expand All @@ -161,14 +159,9 @@ pub fn parachain_genesis(
.collect::<Vec<_>>()
},
},
"treasury": {
},
"vesting": {
},
"xykWarehouseLm": {
},
"xykLiquidityMining": {
},
}
)
"treasury": {},
"vesting": {},
"xykWarehouseLm": {},
"xykLiquidityMining": {},
})
}

0 comments on commit fd87fe9

Please sign in to comment.