Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Integrate a governance XCM origin #407

Merged
merged 13 commits into from
Apr 28, 2021
Merged

Conversation

gavofyork
Copy link
Member

No description provided.

@gavofyork gavofyork changed the title Introduce the converter into the hub Integrate a governance XCM origin Apr 16, 2021
@apopiak
Copy link
Contributor

apopiak commented Apr 22, 2021

So when we try something similar in statemint the message doesn't seem to be handled correctly (I'm still figuring out how to debug this better.), but I have a guess at where this is failing: Cumulus handles downward messages here by giving them the Parent origin and I'm wondering whether/how that interferes with the origin Passthrough.

Edit: I missed that the message will be wrapped in RelayedFrom and that should work.

@gavofyork gavofyork marked this pull request as ready for review April 27, 2021 11:09

// After hashing each message in the message queue chain submitted by the collator, we should
// arrive to the MQC head provided by the relay chain.
assert_eq!(result_mqc_head, expected_dmq_mqc_head);
Copy link
Member

Choose a reason for hiding this comment

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

we could put this above the deposit event and then avoid the clone?

Copy link
Member

Choose a reason for hiding this comment

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

Also we want this panic?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah - it was relying on an indirect panic before. this just makes it explicit.

Copy link
Member Author

Choose a reason for hiding this comment

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

also done in this PR: #413

@gavofyork
Copy link
Member Author

@apopiak @shawntabrizi approvals?

@gavofyork gavofyork merged commit 0ab15b2 into master Apr 28, 2021
@gavofyork gavofyork deleted the gav-parachain-xcm-origin-demo branch April 28, 2021 12:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants