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

Dedicated parachain runtime (First try) #150

Closed
wants to merge 166 commits into from

Conversation

JoshOrndorff
Copy link
Contributor

Closes #116 (if merged all the way to main)

This PR (which is currently based off of #130) introduces a dedicated parachain runtime instead of having a parachain feature in the existing runtime.

This solves a problem that when you simply ran cargo build --release in the repo, it would build the runtime with the parachain feature which meant the sovereign node would be broken.

But don't worry! This does not bring back (much) code duplication. We are able to take the sovereign runtime's constraint checker and use it as a constituent piece in the parachain's checker. This is all thanks to out aggregation macro's focus on recursion.

I included some comments to flex that our design is nicer than FRAME's in this regard.

One remaining issue is that the wallet can't decode the transactions properly (because the aggregate enum is one layer deeper and thus the encoding is one byte longer).

Base automatically changed from joshy-parachain to main November 28, 2023 21:26
@JoshOrndorff
Copy link
Contributor Author

Closing in favor of #198

@JoshOrndorff JoshOrndorff changed the title Dedicated parachain runtime Dedicated parachain runtime (First try) Mar 21, 2024
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.

POC Recursive tuxedo piece aggregation
2 participants