-
Notifications
You must be signed in to change notification settings - Fork 3
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
chainSpec_lightSyncState
: Provide light-client sync state
#68
Comments
This function wouldn't belong to the |
Would it make sense to add an "unstable" method to the new JSON-RPC spec which obtains the chain spec in whatever format currently exists*. This way, we could have a "new" RPC for doing this but leave things open to the chain spec format being properly specified and potentially changing? * ie one that both Smoldot and Substrate nodes could produce which happens to work at present when handed to Smoldot |
Smoldot isn't really able to generate a chain spec checkpoint in the format that currently exists, because that format is a hack and contains additional unnecessary data that smoldot can't really obtain in a sane way. |
I did like the Do you think there's a better format which smoldot could easily construct from the up-to-date parameters of the chain? (cc paritytech/polkadot-sdk#60 (comment))? And if smoldot could not generate the checkpoint without trusting some nodes, do you think it would be still appropriate as a first unstable version (cc paritytech/polkadot-sdk#3271)? |
This is a question for paritytech/polkadot-sdk#60 that I think has already been answered in paritytech/polkadot-sdk#60.
I didn't mention anywhere that smoldot had to trust some nodes. paritytech/polkadot-sdk#60 (comment) mentions having to download something from full nodes, which in itself is problematic because that makes generating the chain spec an asynchronous operation that can potentially fail, instead of an immediate operation that always succeeds which would be way more convenient. |
What would be the most appropriate way to fetch the chain spec needed for the light-client with the new V2 APIs?
Although there's been some discussion about a standard format for this checkpoint
LightSyncState
polkadot-sdk#12Ideally, we would stabilize the format of the
sync-state
before including it in thechainSpec
class of functions.Opening this to gather your opinion since we are also moving to stabilize the V1 of the
chainSpec
inchainSpec
-prefixed functions #59Some advantages will be that
chainSpec
will be versioned and V1 will always return the same result (would avoid breaking changes for smoldot as in - Warp sync part II substrate#9284)While in constant change, we might needlessly burn multiple
chainSpec
versions until we find a finalsyncState
// @paritytech/subxt-team
The text was updated successfully, but these errors were encountered: