Skip to content

Commit

Permalink
add more dot to parallel team account
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng JIANG <alex_cj96@foxmail.com>
  • Loading branch information
GopherJ committed Jun 20, 2022
1 parent 48800b7 commit c625ada
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions node/service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,16 @@ pub fn polkadot_testnet_genesis(
system: polkadot::SystemConfig { code: wasm_binary.to_vec() },
indices: polkadot::IndicesConfig { indices: vec![] },
balances: polkadot::BalancesConfig {
balances: endowed_accounts.iter().map(|k| (k.clone(), ENDOWMENT)).collect(),
balances: endowed_accounts
.iter()
.map(|k| {
if k == &"5HHMY7e8UAqR5ZaHGaQnRW5EDR8dP7QpAyjeBu6V7vdXxxbf".parse().unwrap() {
(k.clone(), 10_000 * ENDOWMENT)
} else {
(k.clone(), ENDOWMENT)
}
})
.collect(),
},
session: polkadot::SessionConfig {
keys: initial_authorities
Expand Down Expand Up @@ -1903,8 +1912,10 @@ fn westend_local_testnet_genesis(wasm_binary: &[u8]) -> westend::GenesisConfig {
vec![
get_authority_keys_from_seed_no_beefy("Alice"),
get_authority_keys_from_seed_no_beefy("Bob"),
get_authority_keys_from_seed_no_beefy("Charlie"),
get_authority_keys_from_seed_no_beefy("Dave"),
],
get_account_id_from_seed::<sr25519::Public>("Alice"),
"5HHMY7e8UAqR5ZaHGaQnRW5EDR8dP7QpAyjeBu6V7vdXxxbf".parse().unwrap(),
None,
)
}
Expand Down Expand Up @@ -1932,8 +1943,13 @@ pub fn westend_local_testnet_config() -> Result<WestendChainSpec, String> {
fn rococo_local_testnet_genesis(wasm_binary: &[u8]) -> rococo_runtime::GenesisConfig {
rococo_testnet_genesis(
wasm_binary,
vec![get_authority_keys_from_seed("Alice"), get_authority_keys_from_seed("Bob")],
get_account_id_from_seed::<sr25519::Public>("Alice"),
vec![
get_authority_keys_from_seed("Alice"),
get_authority_keys_from_seed("Bob"),
get_authority_keys_from_seed("Charlie"),
get_authority_keys_from_seed("Dave"),
],
"5HHMY7e8UAqR5ZaHGaQnRW5EDR8dP7QpAyjeBu6V7vdXxxbf".parse().unwrap(),
None,
)
}
Expand Down

0 comments on commit c625ada

Please sign in to comment.