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.
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.
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.