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

Consider checking whether parachain has a slot at initialization #1431

Open
tomaka opened this issue Oct 12, 2021 · 1 comment
Open

Consider checking whether parachain has a slot at initialization #1431

tomaka opened this issue Oct 12, 2021 · 1 comment

Comments

@tomaka
Copy link
Contributor

tomaka commented Oct 12, 2021

When the user adds a parachain chain spec, this chain spec contains a relay chain and a para_id.

Right now, as long as the relay chain is valid, then the chain initialization succeeds.
Instead, we should consider syncing the relay chain and calling ParachainHost_persisted_validation_data to check whether the parachain indeed has a slot.

@tomaka
Copy link
Contributor Author

tomaka commented Oct 21, 2021

The difficulty in this issue is that add_chain is currently a synchronous method, and it would need to become asynchronous.
This requires some refactoring of the FFI layer.

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

No branches or pull requests

1 participant