This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
pov-recovery: try connect to validators #1711
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
ad5d721
zombienet/pov-recovery: do not setup reserved connection for collators
8e1ba07
connect eve to dave
8ae8d53
REVERTME: diener update --polkadot --branch ao-recovery-try-connect
f8d16c3
REVERTME: cargo update -p sp-io
0d66b70
REVERTME: cargo update -p sp-io and hope for the best
788e355
pass reserved flags for eve after --
6090379
Revert "REVERTME: cargo update -p sp-io and hope for the best"
2d8c568
Revert "REVERTME: cargo update -p sp-io"
dc05eb8
Merge branch 'master' into ao-recovery-try-connect
d48e1e6
REVERTME: cargo update -p sp-io
528d02f
Revert "REVERTME: cargo update -p sp-io"
638e501
Merge branch 'master' into ao-recovery-try-connect
f1cc66c
REVERTME: cargo update -p sp-io
02838a6
REVERTME: cargo update -p sp-io
3ccb759
try some logs and flags
4dd7cd6
apply some suggestions from Sebastian
0019174
let Charlie produce blocks
beaa1da
Revert "REVERTME: cargo update -p sp-io"
8910d24
git checkout master Cargo.lock
d2247fd
Revert "REVERTME: diener update --polkadot --branch ao-recovery-try-c…
3f4a571
zombienet/pov-recovery: 4 validators
3cc9182
REVERTME: diener update --polkadot --branch ao-recovery-try-connect &…
8896d82
Revert "REVERTME: diener update --polkadot --branch ao-recovery-try-c…
6f10c8c
make sure it is not due to backing group connections
d105940
clean up flags
199333d
try no-mdns on collators, limit out-peers on validators
312a480
try no-mdns on validators and bob
a78ec5f
fix bob flag
00cb341
try 7 validators (3 chunks needed for recovery)
37fef29
reserved-only on validators
f35778e
reserved-only on alice and charlie
29d8b57
explicitly pass log targets
b19bf62
rm default_args
3e0a4dd
Merge branch 'master' into ao-recovery-try-connect
f7886f1
parachain=debug and cumulus-pov-recovery=debug
3a815a8
try another idea
025877d
try 13 validators (4 chunks required)
2fe8401
bump block height to 20
c768d1c
Register parachain after 20sec, increase block target to 20
skunert 581b3b9
bump zombienet version
pepoviola ee32416
remove debug
pepoviola cd8e800
bump zombienet
pepoviola 05f51db
Merge remote-tracking branch 'origin/master' into ao-recovery-try-con…
1b04f18
update lockfile for {"polkadot", "substrate"}
2058c1e
Merge remote-tracking branch 'origin/master' into ao-recovery-try-con…
bkchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,51 @@ | ||
| [relaychain] | ||
| default_image = "{{RELAY_IMAGE}}" | ||
| default_command = "polkadot" | ||
| default_args = [ "-lparachain=debug" ] | ||
|
|
||
| chain = "rococo-local" | ||
|
|
||
| [[relaychain.nodes]] | ||
| name = "alice" | ||
| validator = true | ||
| [relaychain.genesis.runtime.runtime_genesis_config.configuration.config] | ||
| # set parameters such that collators only connect to 1 validator as a backing group | ||
| max_validators_per_core = 1 | ||
| group_rotation_frequency = 100 # 10 mins | ||
|
|
||
| [[relaychain.nodes]] | ||
| name = "bob" | ||
| validator = true | ||
| name = "ferdie" # bootnode fullnode | ||
| validator = false | ||
|
|
||
| [[relaychain.node_groups]] | ||
| name = "validator" | ||
| count = 13 | ||
| args = ["-lparachain::availability=trace,sync=debug,parachain=debug", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"] | ||
|
|
||
| [[parachains]] | ||
| id = 2000 | ||
| cumulus_based = true | ||
| register_para = false | ||
| add_to_genesis = false | ||
|
|
||
| # run charlie as parachain collator | ||
| # run bob as a parachain collator who is the only one producing blocks | ||
| # alice and charlie will need to recover the pov blocks through availability recovery | ||
| [[parachains.collators]] | ||
| name = "charlie" | ||
| validator = true | ||
| name = "bob" | ||
| validator = true # collator | ||
| image = "{{COL_IMAGE}}" | ||
| command = "test-parachain" | ||
| args = ["-lparachain=debug"] | ||
| args = ["--disable-block-announcements"] | ||
|
|
||
| # Run dave as parachain collator and eve as parachain full node | ||
| # | ||
| # They will need to recover the pov blocks through availability recovery. | ||
| # run alice as a parachain collator who does not produce blocks | ||
| # alice is a bootnode for bob and charlie | ||
| [[parachains.collators]] | ||
| name = "dave" | ||
| validator = true | ||
| name = "alice" | ||
| validator = true # collator | ||
| image = "{{COL_IMAGE}}" | ||
| command = "test-parachain" | ||
| args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--use-null-consensus", "--disable-block-announcements"] | ||
| args = ["-lparachain::availability=trace,sync=debug,parachain=debug,cumulus-pov-recovery=debug", "--use-null-consensus", "--disable-block-announcements", "--bootnodes {{'bob'|zombie('multiAddress')}}", "--", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"] | ||
|
|
||
| # run eve as parachain full node that is only connected to dave | ||
| # run eve as a parachain full node | ||
| [[parachains.collators]] | ||
| name = "eve" | ||
| validator = false | ||
| name = "charlie" | ||
| validator = false # full node | ||
| image = "{{COL_IMAGE}}" | ||
| command = "test-parachain" | ||
| args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--use-null-consensus", "--disable-block-announcements"] | ||
| args = ["-lparachain::availability=trace,sync=debug,parachain=debug,cumulus-pov-recovery=debug", "--disable-block-announcements", "--bootnodes {{'bob'|zombie('multiAddress')}}","--", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| async function run(nodeName, networkInfo, args) { | ||
| const paraIdStr = args[0]; | ||
| const para = networkInfo.paras[paraIdStr]; | ||
| const relayNode = networkInfo.relay[0]; | ||
|
|
||
| await zombie.registerParachain(parseInt(paraIdStr,10),para.wasmPath, para.statePath, relayNode.wsUri, "//Alice", true); | ||
| } | ||
|
|
||
| module.exports = { run } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.