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

feat: clean dmpq state at genesis #279

Merged
merged 6 commits into from
Aug 10, 2024
Merged

Conversation

al3mart
Copy link
Contributor

@al3mart al3mart commented Aug 9, 2024

If HRMP channels need to be open at genesis the dmq state on the relay needs to match the one in the parachains.
This is not the case in the current state of zombienet, so the changes in this MR take care of cleaning the dmq state in the relay so HRMP channels can be open at genesis.

Follow up work:

A sensible next step would be reading the values from the relevant keys in the parachains and writing those in the relay state. As this change stands right now it would work nicely with parachains that have clean state for the dmqs. Usually that's the state of a parachain that is to be launched, but just in case the mentioned improvements should fit all scenarios.

Copy link
Contributor

@evilrobot-01 evilrobot-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a few minor improvements left please.

crates/pop-parachains/src/errors.rs Outdated Show resolved Hide resolved
crates/pop-parachains/src/utils/helpers.rs Show resolved Hide resolved
crates/pop-parachains/src/utils/helpers.rs Show resolved Hide resolved
@evilrobot-01 evilrobot-01 mentioned this pull request Aug 9, 2024
5 tasks
@evilrobot-01 evilrobot-01 changed the title Clean dmpq state at genesis feat: clean dmpq state at genesis Aug 10, 2024
@evilrobot-01 evilrobot-01 merged commit 729b5b6 into frank/hrmp Aug 10, 2024
@evilrobot-01 evilrobot-01 deleted the al3mart/patch-clean-dmpq branch August 10, 2024 11:46
evilrobot-01 pushed a commit that referenced this pull request Aug 10, 2024
* dispatch kill tx

* paseo-local metadata

* chore: address hrmp channels at creation

* clean unnecessary deps

* fix: don't wait for finalisation

* Provide documentation
evilrobot-01 pushed a commit that referenced this pull request Oct 10, 2024
* dispatch kill tx

* paseo-local metadata

* chore: address hrmp channels at creation

* clean unnecessary deps

* fix: don't wait for finalisation

* Provide documentation
Daanvdplas pushed a commit that referenced this pull request Oct 24, 2024
* dispatch kill tx

* paseo-local metadata

* chore: address hrmp channels at creation

* clean unnecessary deps

* fix: don't wait for finalisation

* Provide documentation
evilrobot-01 added a commit that referenced this pull request Oct 24, 2024
* chore: release 0.4.0 (#318)

* fix: bump version to 0.3.1

* fix: image in pop-cli README crate

* chore: update changelog

* fix: logo in pop-cli crate

* fix: logo in pop-cli crate from onpop site

* fix: remove unused images

* fix: version 0.4.0

* chore: update version to 0.4.0

* build(deps): update zombienet-sdk to use fork

* chore: switch pop network configuration to paseo with hrmp channels

* test: add relay+asset hub network config files

* feat: clean dmpq state at genesis (#279)

* dispatch kill tx

* paseo-local metadata

* chore: address hrmp channels at creation

* clean unnecessary deps

* fix: don't wait for finalisation

* Provide documentation

* refactor: improve ux

* feat: add rococo-local metadata

* fix: resolve merge conflict

* chore: update zombienet-sdk

* feat: ismp relaying

* refactor: use dynamic tx for clearing dmpq state

---------

Co-authored-by: Alex Bean <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Alejandro Martinez Andres <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants