Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: new spec #443

Merged
merged 7 commits into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 57 additions & 17 deletions .maintain/reset-spec/peregrine_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ def update_spec(input: typing.Dict, base_chain="westend"):
acc_bob = "5DL9V1dmkuZnzRD9R3cwdzowim3sBZZvz1iJhNxC5QjofikK"
acc_charlie = "5DcKRxsjojmbJW7Scxnu7Ck5zXfpg1RxtrcyVjaMRx5YFWUR"
acc_dave = "5E4ZYy9tTPpJPoScqm6PvLtr1MjsBEjbDufJQYhcuBtk6rNa"
acc_eve = "5ELCvQBGu8ur9UDSMAiqB4PrYXTnLGwcaUg63gtkxWtScEYm"
acc_ferdie = "5G6ThxmfSbHVt2u8WmZmTH3xeKBckFFDGA69E6cSXtYPaiwT"

input.update({
"bootNodes": [
"/dns4/eyrie-1.kilt.io/tcp/30360/p2p/12D3KooWEeezCpJauUmWw3zfgEtYzhZTc5LgukQYtGTMaZfzgVfE",
"/dns4/eyrie-2.kilt.io/tcp/30361/p2p/12D3KooWHq5j9tLdZEu4tnr6ii2k33zp5DCoKREQ6KzuabC9Gihu",
"/dns4/eyrie-2.kilt.io/tcp/30362/p2p/12D3KooWQ8iTGLH98zLz9BZmq5FXDmR1NytDsJ2VToXvcjvHV16a",
"/dns4/eyrie-1.kilt.io/tcp/30363/p2p/12D3KooWNWNptEoH443LVUgwC5kd7DBVoNYwQtJh6dp4TQxUsAST",
"/dns4/eyrie-3.kilt.io/tcp/30365/p2p/12D3KooWCYnLwW3eEWiWqBNraUDjp8qVg2uwyJxh9fKAs32PMutR",
"/dns4/eyrie-3.kilt.io/tcp/30366/p2p/12D3KooWCED7zzribj75pE98739qp8QNDDfXFmL2w6JMLwBWFLxL",
"/dns4/eyrie-2.kilt.io/tcp/30300/p2p/12D3KooWM8RCC8r2Bc4qkAC5oh8m9gSQispJ9TCMchx4BjtGdpSZ",
"/dns4/eyrie-2.kilt.io/tcp/30301/p2p/12D3KooWNeTst8AmFWKBKFtAB1RJk5YwpXsTfCenFX6azozv4Q1V",
"/dns4/eyrie-2.kilt.io/tcp/30302/p2p/12D3KooWPT1SzyKnYBgDEmRVrPf88LLzD44D1bvp1Fh4EJLRtadb",
"/dns4/eyrie-2.kilt.io/tcp/30303/p2p/12D3KooWMSAdpcHmfZQfd284ZgDeW5KuFfRM9HAKqWU8xTdNDoYV",
"/dns4/eyrie-2.kilt.io/tcp/30304/p2p/12D3KooWMrteVGFXZUQNhJyxCkeUL18gEmcmggA6xj87GLM27yBz",
"/dns4/eyrie-2.kilt.io/tcp/30305/p2p/12D3KooWCcTV8vjq9KffXjcB2FG7SWK34zUfexj7d1vdVRAwCx14",
],
"chainType": "Live",
"name": "Peregrine Relay",
"protocolId": "Rkilt5",
"id": f"{base_chain}_peregrine5_relay",
"protocolId": "Rkilt6",
"id": f"{base_chain}_peregrine6_relay",
"telemetryEndpoints": [
[
"/dns/telemetry-backend.kilt.io/tcp/8080/x-parity-wss/%2Fsubmit",
0
]
]

})
input["genesis"]["runtime"]["balances"]["balances"] = [
[acc_alice, 1000000000000000000],
[acc_bob, 1000000000000000000],
[acc_charlie, 1000000000000000000],
[acc_dave, 1000000000000000000]
[acc_dave, 1000000000000000000],
[acc_eve, 1000000000000000000],
[acc_ferdie, 1000000000000000000],
]
input["genesis"]["runtime"]["staking"].update({
"validatorCount": 4,
"validatorCount": 6,
"stakers": [
[
acc_alice,
Expand All @@ -60,6 +60,18 @@ def update_spec(input: typing.Dict, base_chain="westend"):
acc_dave,
100000000000000,
"Validator"
],
[
acc_eve,
acc_eve,
100000000000000,
"Validator"
],
[
acc_ferdie,
acc_ferdie,
100000000000000,
"Validator"
]
]
})
Expand Down Expand Up @@ -108,6 +120,28 @@ def update_spec(input: typing.Dict, base_chain="westend"):
"para_assignment": "5FxM6yYBFvMeX3C2QrQDXJ8LhhzG5sPjgUtX77cX1wihHhVq",
"authority_discovery": "5FxM6yYBFvMeX3C2QrQDXJ8LhhzG5sPjgUtX77cX1wihHhVq",
}
], [
acc_eve,
acc_eve,
{
"grandpa": "5GKaEkaA8NVdpsruRcnpeLBNGzMcFsEfwEY3Jq7Vmw9brztR",
"babe": "5GnPNFKvLRy9FF8N1G9YjGmjJA4cUsUC7WgEx3rDeMFnZsXk",
"im_online": "5GnPNFKvLRy9FF8N1G9YjGmjJA4cUsUC7WgEx3rDeMFnZsXk",
"para_validator": "5GnPNFKvLRy9FF8N1G9YjGmjJA4cUsUC7WgEx3rDeMFnZsXk",
"para_assignment": "5GnPNFKvLRy9FF8N1G9YjGmjJA4cUsUC7WgEx3rDeMFnZsXk",
"authority_discovery": "5GnPNFKvLRy9FF8N1G9YjGmjJA4cUsUC7WgEx3rDeMFnZsXk",
}
], [
acc_ferdie,
acc_ferdie,
{
"grandpa": "5CSYQMyi7iGVuHLgLNDXcpPXZgvWWrP7mqd1sHdBUSeafXf5",
"babe": "5CPW6uFwdjoHTj14C1VWiK96Cj2sJBALbC964zHaGAni3J2S",
"im_online": "5CPW6uFwdjoHTj14C1VWiK96Cj2sJBALbC964zHaGAni3J2S",
"para_validator": "5CPW6uFwdjoHTj14C1VWiK96Cj2sJBALbC964zHaGAni3J2S",
"para_assignment": "5CPW6uFwdjoHTj14C1VWiK96Cj2sJBALbC964zHaGAni3J2S",
"authority_discovery": "5CPW6uFwdjoHTj14C1VWiK96Cj2sJBALbC964zHaGAni3J2S",
}
]
]
input["genesis"]["runtime"]["sudo"]["key"] = acc_alice
Expand All @@ -124,7 +158,10 @@ def update_spec(input: typing.Dict, base_chain="westend"):
"validation_upgrade_delay": 2,
"max_pov_size": 5242880,
"max_downward_message_size": 1048576,
"ump_service_total_weight": 100000000000,
"ump_service_total_weight": {
"ref_time": 100000000000,
"proof_size": 5242880
},
"hrmp_max_parachain_outbound_channels": 4,
"hrmp_max_parathread_outbound_channels": 4,
"hrmp_sender_deposit": 0,
Expand All @@ -141,7 +178,7 @@ def update_spec(input: typing.Dict, base_chain="westend"):
"chain_availability_period": 4,
"thread_availability_period": 4,
"scheduling_lookahead": 0,
"max_validators_per_core": 1,
"max_validators_per_core": None,
"max_validators": None,
"dispute_period": 6,
"dispute_post_conclusion_acceptance_period": 100,
Expand All @@ -152,7 +189,10 @@ def update_spec(input: typing.Dict, base_chain="westend"):
"zeroth_delay_tranche_width": 0,
"needed_approvals": 2,
"relay_vrf_modulo_samples": 2,
"ump_max_individual_weight": 20000000000,
"ump_max_individual_weight": {
"ref_time": 20000000000,
"proof_size": 5242880
},
"pvf_checking_enabled": False,
"pvf_voting_ttl": 2,
"minimum_validation_upgrade_delay": 5
Expand Down
4 changes: 3 additions & 1 deletion dev-specs/kilt-parachain/peregrine-kilt.json

Large diffs are not rendered by default.

131 changes: 87 additions & 44 deletions dev-specs/kilt-parachain/peregrine-relay.json

Large diffs are not rendered by default.

206 changes: 0 additions & 206 deletions dev-specs/kilt-parachain/peregrine-relay2.json

This file was deleted.