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

Don't require the genesis state for parachains #1034

Merged
merged 6 commits into from
Aug 15, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Aug 15, 2023

Close #908
cc #864

When it comes to relay chains, it is mandatory for the chain spec to contain either the genesis state or a checkpoint, as otherwise it's not possible to verify warp sync proofs and in general not possible to sync at all.

When it comes to parachains, however, it is in principle possible to do with neither, as all the information we need is found in the relay chain.

However, before this PR, the restriction of having either the genesis state or checkpoint applied to both relay chains and parachains. Given that parachains can't have checkpoints, this has the consequence that the genesis state of parachains always had to be provided, and thus smoldot always had to build the runtime and calculate the state root, which uses a lot of CPU.
This PR fixes this.

@tomaka tomaka added this pull request to the merge queue Aug 15, 2023
Merged via the queue into smol-dot:main with commit b190aea Aug 15, 2023
@tomaka tomaka deleted the no-ci-parachains branch August 15, 2023 09:29
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.

Don't build the chain information of parachains
1 participant